Please enable JavaScript to view this site.

//IMAGE, imagespec, left, top, right, bottom {,flags, borderwidth, imagespec2, rotation, pageno}

IMAGE works like METAFILE except that it supports BMP, JPG, PCX, TIF and PNG format images. It requires, however, that an external graphics library, vic32.dll, be present and licensed. Note that if any error occurs while trying to print the image, including the specified rectangle extending beyond the printable region of the page, the IMAGE directive itself will print rather than the image. See the topic Parameters: Symbols vs. Values if you have questions about which to use.

Note that you must specify a SETMAPMODE option other than TEXT.

Parameters

imagefilespec

File specification of the image (AMOS-style or native). PNG files with WMF extensions are supported. Note that true metafiles with WMF extensions should be handled by METAFILE.

left, top, right, bottom

Bounding rectangle (within current coordinate system) into which the image will be fit. The image may be stretched to fill the rectangle, depending on the flags argument. Setting the right and/or bottom parameter to 0 will be interpreted as the rightmost and/or bottommost edge of the page. Use 0,0,0,0 to fill the entire page, minus the printer’s physical margins.

flags

Add together the applicable options:

Symbol

Value

Description

IMGF_HALFTONE

&h001

Use halftone print method.

IMGF_SCATTER

&h002

Use scatter print method.

IMGF_STRETCH

&h004

Stretch image to fit bounding rectangle. Other­wise retain aspect ratio, meaning the image will likely be smaller than the rectangle in one of the two dimensions.

IMGF_SCALEQ

&h008

Interpolate—i.e., use hq scaling.

IMGF_FORCEXFER

&h010

(ATE) Force image filespec to be treated as relative to the host and transfer it to the client. Applies to IMGOP_LOAD and IMGOP_LOADDISP.

IMGF_OPTIONAL

&h020

Applies only if imagefilespec is missing. Then: if imagefilespec2 is present, print it. If it is not present, print nothing. Value may also be expressed as the text "Optional." See "Image Is Not Present" discussion, below.

IMGF_OFFSET

&h040

Causes images to be shifted according to the XOFFSET and YOFFSET values. Normally images only obey the XORIGIN and YORIGIN values, ignoring the XOFFSET and YOFFSET values (which allows text to be shifted relative to images when lining up computer-generated forms). But when using multiple XOFFSET and YOFFSET directives to shift/repeat sections of GDI output, the ability to move the images along with everything else is critical.

 

borderwidth

If non-zero, specifies the width, in pixels, of a solid black border to be drawn around the outside of the rectangle

imagefilespec2

File specification of the image to be printed if imagefilespec1 is not present.

rotation

The angle in degrees, as in the SETFONT directive. Note that the image is first rotated, then fitted to the specified coordinates.

pageno

Specifies the page from within a multi-page TIF file. The first page is considered page number one, but 0 or nothing is also treated as 1. Note that to use APEX as a multi-page TIF image viewer, you would need to first use the AUI_IMAGE IMGOP_PAGEINFO operation to determine the number of pages, then generate a series of IMAGE directives, one for each page, probably separated by page breaks.

 

u File Locations

 

u Image Is Not Present

 

u History

 

Created with Help+Manual 9 and styled with Premium Pack Version 5 © by EC Software