GDDM V3R2 Base Application Programming Reference
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
IMACRT GDDM V3R2 Base Application Programming Reference SC33-0868-02 |
|
Function To create an image. IMACRT (id, h-pixels, v-pixels, im-type, res, res-unit, h-res, v-res) Parameters id (specified by user) (fullword integer)
h-pixels (specified by user) (fullword integer) The horizontal size of the image, in numbers of pixels. If zero is used, an image containing no pixels is created. v-pixels (specified by user) (fullword integer) The vertical size of the image, in numbers of pixels. If zero is used, an image containing no pixels is created. im-type (specified by user) (fullword integer) The type of image to be created.
The resolution flag for the image. This specifies whether the image is to have a defined or undefined resolution. When an image has an undefined resolution, the values of the h-res and v-res fields of the image are ignored during image manipulations. When a scanner image is created with an undefined resolution, subsequent scanning is set at the resolution currently set on the scanner, but the images resulting from this have undefined resolution. Projections containing extracts in real units cannot be applied to images with undefined resolution; see IMREXR.
The units for the h-res and v-res parameters. The value of res-unit parameter is used only to interpret the h-res and v-res parameters, and is not subsequently associated with the image in any way.
v-res (specified by user) (short floating point)
Values of 0 can be given for these parameters if res is 0, providing that res is not subsequently changed to 1 using IMARF. It is an error if an image with zero h-res and v-res is used in this way. The values of h-res and v-res must be the same for any image that is to be retrieved by an IMAGT sequence (IMAGTS, IMAGT, IMAGTE) using PPF format and IBM 3800 compression. Description Creates an image of the specified horizontal and vertical size, type, and resolution and associates it with the specified identifier. When created, images contain initial pixel values, defined to be zeros for bi-level image. The identifier id can be any value that does not correspond to an already existing image. If the value of id has not been determined using IMAGID, it should be either -1, or a number in the range 1 through 2(30)-1, so as not to conflict with values reserved by IMAGID, which are in the range 2(30) through 2(31)-1. If id was returned by IMAGID, it is no longer reserved after IMACRT. The IMACRT call can be used to define the attributes of a scanner image by specifying id equal to -1. The image size usually specifies the paper size. For a 3118 scanner, the image is defined to be centered over the vertical center line of the paper and aligned with the top edge. Note that the paper-feed mechanism of the 3118 scanner automatically aligns the paper over the center of the scanner sensor array. For a 3117 scanner, the image is defined to be aligned on the top, and left edges of the scanner bed. Principal errors
|
Copyright IBM Corporation 1990, 2012 |