Parent Topic: IWORKS
Tracing, creating shapes, and annotation are available. It is also possible to set line styles, font styles, and font size.
The Image Editing panel can be launched by selecting the `Image' option from the ``Edit'' pulldown menu in ImageWorks.
The Operation area of the Image Editing panel contains a button for each major operation that can be done. At any one time only one of these buttons may be depressed, indicating the current operation mode. Descriptions of each of the operation modes follows in the subtopics Shapes, Lines, Cut, Copy, Paste, and Annotation.
The Style Modifiers area of the Image Editing panel contains additional modifiers for the image operation.
The first option is the colour to be written by an image drawing operation. The default is white, or a value of 255 in each of the affected planes. Any other value may be mixed using the colour mixing controls.
The next option is the line width. All shapes and lines drawn are affected by the line width set here. This is even true of solid shapes.
The last options are those dealing with the annotation font style and size. These are discussed in the Annotation subtopic.
When one of the shape operations is active, it is possible to drag out a copy of the shape, seeing the outline as the drag takes place. When the drag is released, the shape is burned into the selected image planes. The Escape key may be used to cancel an action during a drag.
Specifically, one depresses the left mouse button in the Main Image Window, drags the mouse while holding down the button, and releases when the shape has been dragged out to the desired size.
Each of the line operations creates one or more line segments which are affected by the line width option under Style Modifiers. In each case the line operations are controlled by depressing the left mouse button, dragging, and releasing. The Escape key may be used to cancel an action during a drag.
The Line operation creates a new disconnected line segment for each Drag sequence. The PolyLine operation creates a new line segment connected to the last for each Drag sequence. The Polygon operation acts the same as the PolyLine operation, but closes the polyline to form a polygon when polygon mode is terminated.
Trace mode creates a series of short line segments as the cursor is dragged around with the left mouse button depressed. Trace & Close mode is similar to Trace mode, except that it closes the traced polygon when the left mouse button is released.
The Cut and Copy functions work identically with the exception that Cutting a block of imagery will blank out (set to zero) the selected rectangle, while Copying does not affect the selected area. After selecting Cut or Copy mode on the Image Editing Panel a rectangle is dragged out with the left mouse button depressed and the cut/copy takes place when the mouse button is released. The Escape key may be used to cancel an action during a drag.
The Paste function overwrites a region of imagery with the contents of the image clipboard. The saved imagery is not destroyed and may be pasted multiple times. After Paste on the Image Editing Panel has been selected, the paste box may be dragged around in the image window while the left mouse button is depressed. When the mouse button is released the saved imagery data is added to the target region.
Note that the contents of the imagery clipboard are persistent when the viewed image plane(s) are changed, so a region can be Cut or Copied from one image plane and Pasted into another. The Cut and Copy functions will grab one or three image planes worth of unenhanced image data when the Cut or Copy takes place. The enhancement and/or PCT of the image window are not associated with the data in the clipboard.
The Clear mode buttons have no effect on the Cut, Copy, and Paste functions.
The fonts offered are loaded from Metafont `gf' files located in /pci/etc, or (on X/Motif systems) from the X Server. It is theoretically possible for the user to add Metafont `gf' files to the /pci/etc/fonts.lst file if they obtain additional gf fonts from other sources.
On X/Motif systems it is possible to select one additional font by its name in a user's X initialization file (i.e. .Xdefaults). The resource to be set is `annotationFont'. If the following line is placed in the X initialization (i.e. .Xdefaults) file, the named system font (in this case *screen-bold*-14-*) should appear on the list of fonts available within the Graphic Editing panel of ImageWorks:
*annotationFont: *screen-bold*-14-*When the Annotate operation is active, and keyboard focus is in the main image window of ImageWorks, all keystrokes will be added to a string placed at the current cursor position. Either the backspace or the delete key should delete the last character from the string.
Dragging the image cursor with the left mouse button should result in the string being dragged as well. Dragging with the right mouse button will rotate and scale the text, pivoting the text around a point half way along the text string.
The string is actually burned into the image plane(s) when the <Enter> key is hit, or annotation mode is exited. Hitting enter will also result in the image cursor moving down by the height of a line of text. This is to allow for the convenient entering of multiple lines of text.