EDITBITMAP documentationD. Austin Henderson, Jr.Initially released: April 10, 1983Last revised: April 23, 1983EDITBITMAP (and .DCOM) provides na interface (EDIT.BITMAP) formanipulating bitmaps. It puts up a menu of bitmap manipulation commands, one of which isHAND.EDIT which accesses EDITBM, the Interlisp-D bitmap editor. Other commands includeshifting (in four directions), rotation (left and right 90 degree), inverting (horizontally, vertically,about diagonals), interchanging black and white, adding a border. A sequence of commandsterminated by QUIT produces a new bitmap; the original bitmap is not effected. UNDO permitsbacking up. Also works on cursors (produces new cursor) and ATOMS (works on their values andresets the value with the result). Comments on both interface and functionality are welcomed.EDIT.BITMAP (BITMAP) BITMAP may be a bitmap, a cursor or an ATOM. Returns: if BITAMPis a bitmap, then a new bitmap; if a cursor, then a new cursor; if an ATOM, then the ATOMwhose bvalue will have been reset with the result of calling EDIT.BITMAP on the value of thatatom.The internal functions used by this package are also available for use. They are:ADD.BORDER.TO.BITMAP (BITMAP NBITS TEXTURE) Returns a new bitmap which isBITMAP extended by NBITS in all four directions, the border being filled in with TEXTURE.BIT.IN.COLUMN (BITMAP COLUMN) Returns T if any bit in column numbered COLUMN(left = 0) is not 0, NIL otherwise.BIT.IN.ROW (BITMAP ROW) Returns T if any bit in row numbered ROW (bottom = 0) is not0, NIL otherwise.INVERT.BITMAP.B/W (BITMAP) Returns a new bitmap which is BITMAP with all its bitsinverted (black for white).INVERT.BITMAP.DIAGONALLY (BITMAP) Returns a new bitmap which is BITMAP flippedabout X=Y diagonal. (The resulting bitmap's width will be BITMAP's height.)INVERT.BITMAP.HORIZONTALLY (BITMAP) Returns a new bitmap which is BITMAP flippedabout its vertical centerline. INVERT.BITMAP.VERTICALLY (BITMAP) Returns a new bitmap which is BITMAP flippedabout its horizontal centerline. bp _q ](" [: Vpqpq% T@ R7 P71 N)/ L6% JK I 3* Dpq9 B1( @*3 > :nQ 6p+q 4; /pq/ -# )Wpq( 'i #pq* ! p!q K Sp#q  e p!q ! =Uq2ROTATE.BITMAP.LEFT (BITMAP) Returns a new bitmap which is BITMAP rotated 90 degreescounter-clockwise. (The resulting bitmap's width will be BITMAP's height.).ROTATE.BITMAP.RIGHT (BITMAP) Returns a new bitmap which is BITMAP rotated 90 degreesclockwise. (The resulting bitmap's width will be BITMAP's height.).SHIFT.BITMAP.DOWN (BITMAP NBITS) Returns a new bitmap which is BITMAP extended byNBITS in the upward direction, the new space being filled in with white.SHIFT.BITMAP.UP (BITMAP NBITS) Returns a new bitmap which is BITMAP extended byNBITS in the downwards direction, the new space being filled in with white.SHIFT.BITMAP.LEFT (BITMAP NBITS) Returns a new bitmap which is BITMAP extended byNBITS to the right, the new space being filled in with white.SHIFT.BITMAP.RIGHT (BITMAP NBITS) Returns a new bitmap which is BITMAP extended byNBITS to the left, the new space being filled in with white.TRIM.BITMAP (BITMAP) Returns a new bitmap which is BITMAP trimmed at all four edges ofall completely white (0) columns and rows.Nfq bpq0 `0K [pq0 YC Uppq% SH Opq M,K Hpq% F= Blp!q% @~< <pq: :'* 9=.+v TIMESROMAN  TIMESROMAN  j/  EDITBITMAP.bravo AHenderson.PAApril 23, 1983 5:25 PM