| Manpages BITMAPSection: User Commands (1)Updated: Release 6.5 Index Return to Main Contents NAMEbitmap, bmtoa, atobm - bitmap editor and converter utilities for the X Window SystemSYNOPSISbitmap [ -options ... ] [ filename ] [ basename ]bmtoa [ -chars ... ] [ filename ] atobm [ -chars cc ] [ -name variable ] [ -xhot number ] [ -yhot number ] [ filename ] DESCRIPTIONThe bitmap program is a rudimentary tool for creating or editing rectangular images made up of 1's and 0's. Bitmaps are used in X for defining clipping regions, cursor shapes, icon shapes, and tile and stipple patterns.The bmtoa and atobm filters convert bitmap files (FILE FORMAT) to and from ASCII strings. They are most commonly used to quickly print out bitmaps and to generate versions for including in text. COMMAND LINE OPTIONSBitmap supports the standard X Toolkit command line arguments (see X(1)). The following additional arguments are supported as well.
 Bmtoa accepts the following option: 
 Atobm accepts the following options: 
 USAGEBitmap displays grid in which each square represents a single bit in the picture being edited. Actual size of the bitmap image, as it would appear normaly and inverted, can be obtained by pressing Meta-I key. You are free to move the image popup out of the way to continue editing. Pressing the left mouse button in the popup window or Meta-I again will remove the real size bitmap image.If the bitmap is to be used for defining a cursor, one of the squares in the images may be designated as the hot spot. This determines where the cursor is actually pointing. For cursors with sharp tips (such as arrows or fingers), this is usually at the end of the tip; for symmetric cursors (such as crosses or bullseyes), this is usually at the center. Bitmaps are stored as small C code fragments suitable for including in applications. They provide an array of bits as well as symbolic constants giving the width, height, and hot spot (if specified) that may be used in creating cursors, icons, and tiles. EDITINGTo edit a bitmap image simply click on one of the buttons with drawing commands (Point, Curve, Line, Rectangle, etc.) and move the pointer into the bitmap grid window. Press one of the buttons on your mouse and the appropriate action will take place. You can either set, clear or invert the gird squares. Setting a grid square corresponds to setting a bit in the bitmap image to 1. Clearing a grid square corresponds to setting a bit in the bitmap image to 0. Inverting a grid square corresponds to changing a bit in the bitmap image from 0 to 1 or 1 to 0, depending what its previous state was. The default behavior of mouse buttons is as specified below.
 
                MouseButton1            Set
                MouseButton2            Invert
                MouseButton3            Clear
                MouseButton4            Clear
                MouseButton5            Clear
This default behavior can be changed by setting the button function resources. An example is provided below. 
 
                bitmap*button1Function: Set
                bitmap*button2Function: Clear
                bitmap*button3Function: Invert
                etc.
The button function applies to all drawing commands, including copying, moving and pasting, flood filling and setting the hot spot. DRAWING COMMANDSHere is the list of drawing commands accessible through the buttons at the left side of the application's window. Some commands can be aborted by pressing A inside the bitmap window, allowing the user to select different guiding points where applicable.
 FILE MENUThe File menu commands can be accessed by pressing the File button and selecting the appropriate menu entry, or by pressing Ctrl key with another key. These commands deal with files and global bitmap parameters, such as size, basename, filename etc.
 EDIT MENUThe Edit menu commands can be accessed by pressing the Edit button and selecting the appropriate menu entry, or by pressing Meta key with another key. These commands deal with editing facilities such as grid, axes, zooming, cut and paste, etc.
 CUT AND PASTEBitmap supports two cut and paste mechanisms; the internal cut and paste and the global X selection cut and paste. The internal cut and paste is used when executing copy and move drawing commands and also cut and copy commands from the edit menu. The global X selection cut and paste is used whenever there is a highlighted area of a bitmap image displayed anywhere on the screen. To copy a part of image from another bitmap editor simply highlight the desired area by using the Mark command or pressing the shift key and dragging the area with the left mouse button. When the selected area becomes highlighted, any other applications (such as xterm, etc.) that use primary selection will discard their selection values and unhighlight the appropriate information. Now, use the Paste command for the Edit menu or control mouse button to copy the selected part of image into another (or the same) bitmap application. If you attempt to do this without a visible highlighted image area, the bitmap will fall back to the internal cut and paste buffer and paste whatever was there stored at the moment.WIDGETSBelow is the widget structure of the bitmap application. Indentation indicates hierarchical structure. The widget class name is given first, followed by the widget instance name. All widgets except the bitmap widget are from the standard Athena widget set.
 
        Bitmap bitmap
                TransientShell image
                        Box box
                                Label normalImage
                                Label invertedImage
                TransientShell input
                        Dialog dialog
                                Command okay
                                Command cancel
                TransientShell error
                        Dialog dialog
                                Command abort
                                Command retry
                TransientShell qsave
                        Dialog dialog
                                Command yes
                                Command no
                                Command cancel
                Paned parent
                        Form formy
                                MenuButton fileButton
                                SimpleMenu fileMenu
                                        SmeBSB  new
                                        SmeBSB  load
                                        SmeBSB  insert
                                        SmeBSB  save
                                        SmeBSB  saveAs
                                        SmeBSB  resize
                                        SmeBSB  rescale
                                        SmeBSB  filename
                                        SmeBSB  basename
                                        SmeLine line
                                        SmeBSB  quit
                                MenuButton editButton
                                SimpleMenu editMenu
                                        SmeBSB  image
                                        SmeBSB  grid
                                        SmeBSB  dashed
                                        SmeBSB  axes
                                        SmeBSB  stippled
                                        SmeBSB  proportional
                                        SmeBSB  zoom
                                        SmeLine line
                                        SmeBSB  cut
                                        SmeBSB  copy
                                        SmeBSB  paste
                                Label status
                        Pane pane
                                Bitmap bitmap
                                Form form
                                        Command clear
                                        Command set
                                        Command invert
                                        Toggle  mark
                                        Command unmark
                                        Toggle  copy
                                        Toggle  move
                                        Command flipHoriz
                                        Command up
                                        Command flipVert
                                        Command left
                                        Command fold
                                        Command right
                                        Command rotateLeft
                                        Command down
                                        Command rotateRight
                                        Toggle  point
                                        Toggle  curve
                                        Toggle  line
                                        Toggle  rectangle
                                        Toggle  filledRectangle
                                        Toggle  circle
                                        Toggle  filledCircle
                                        Toggle  floodFill
                                        Toggle  setHotSpot
                                        Command clearHotSpot
                                        Command undo
COLORSIf you would like bitmap to be viewable in color, include the following in the #ifdef COLOR section of the file you read with xrdb:*customization: -color 
 
 BITMAP WIDGETBitmap widget is a stand-alone widget for editing raster images. It is not designed to edit large images, although it may be used in that purpose as well. It can be freely incorporated with other applications and used as a standard editing tool. The following are the resources provided by the bitmap widget.
 
Bitmap Widget
Header file             Bitmap.h
Class                   bitmapWidgetClass
Class Name              Bitmap
Superclass              Bitmap
All the Simple Widget resources plus ...
Name            Class           Type            Default Value
foreground      Foreground      Pixel           XtDefaultForeground
highlight       Highlight       Pixel           XtDefaultForeground
framing         Framing         Pixel           XtDefaultForeground
gridTolerance   GridTolerance   Dimension       8
size            Size            String          32x32
dashed          Dashed          Boolean         True
grid            Grid            Boolean         True
stippled        Stippled        Boolean         True
proportional    Proportional    Boolean         True
axes            Axes            Boolean         False
squareWidth     SquareWidth     Dimension       16
squareHeight    SquareHeight    Dimension       16
margin          Margin          Dimension       16
xHot            XHot            Position        NotSet (-1)
yHot            YHot            Position        NotSet (-1)
button1Function Button1Function DrawingFunction Set
button2Function Button2Function DrawingFunction Invert
button3Function Button3Function DrawingFunction Clear
button4Function Button4Function DrawingFunction Invert
button5Function Button5Function DrawingFunction Invert
filename        Filename        String          None ("")
basename        Basename        String          None ("")
AUTHORDavor Matic, MIT X Consortium
 Index
 This document was created by man2html, using the manual pages. Time: 03:37:09 GMT, October 31, 2025 |