Penguin
Annotated edit history of pbmmask(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 pbmmask
2 !!!pbmmask
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 SEE ALSO
7 AUTHOR
8 ----
9 !!NAME
10
11
12 pbmmask - create a mask bitmap from a regular bitmap
13 !!SYNOPSIS
14
15
16 __pbmmask__ [[__-expand__]
17 [[''pbmfile'']
18 !!DESCRIPTION
19
20
21 Reads a portable bitmap as input. Creates a corresponding
22 mask bitmap and writes it out.
23
24
25 The color to be interpreted as
26
27
28 This lets you do a masked paste like this, for objects with
29 a black background:
30
31
32 pbmmask obj
33 For objects with a white background, you can either invert them or add a step:
34
35
36 pbmmask obj
37 Note that this three-step version works for objects with black backgrounds too, if you don't care about the wasted time.
38
39
40 You can also use masks with graymaps and pixmaps, using the
41 ''pnmarith'' tool. For instance:
42
43
44 ppmtopgm obj.ppm | pgmtopbm -threshold | pbmmask
45 An interesting variation on this is to pipe the mask through the ''pnmsmooth'' script before using it. This makes the boundary between the two images less sharp.
46
47
48 __-expand__
49
50
51 Expands the mask by one pixel out from the image. This is
52 useful if you want a little white border around your image.
53 (A better solution might be to turn the ''pbmlife'' tool
54 into a general cellular automaton tool...)
55 !!SEE ALSO
56
57
58 pnmpaste(1), pnminvert(1), pbm(5), pnmarith(1),
59 pnmsmooth(1)
60 !!AUTHOR
61
62
63 Copyright (C) 1988 by Jef Poskanzer.
64 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.