Wednesday, April 2, 2008

SQR - PRINT-IMAGE & IMAGE-SIZE

After searching the Web, I have found that there is not enough documentation about IMAGE-SIZE of the PRINT-IMAGE command, or I have not done the search right ;-). Either way here it goes in plain English:

Excerpt from the Book:


PRINT-IMAGE
Syntax
PRINT-IMAGE[image_name]position
[TYPE={image_type_lit|_var|_col}]
[IMAGE-SIZE=(width_num_lit|_var|_col,height_num_lit
[SOURCE={file_name_txt_lit|_var|_col}]


IMAGE-SIZE - Specifies the width and height of the image. The width (width_num_lit) is specified in the font point-size that you have specified in the print command or ALTER-PRINTER. So putting:
alter-printer point-size=14 font=4

would affect your image size. Height (height_num_lit) - is specified in the line height. So changing


DECLARE-LAYOUT
[CHAR-WIDTH=char_width_num_lit[uom]]
[LINE-HEIGHT=line_height_num_lit[uom]]
END-DECLARE
Would have an effect on the image width and height.

No comments: