<<

Contents

Search

>>

 

LPRINT_PICTURE

 

 

Function

 

 

Syntax:

LPRINT_PICTURE(<Line>,<Column>,<Height in Lines>,<Width in Columns>,<Mode>,<Image Name>)

 

<Line>

= <NUM-EXPRESSION>

<Column>

= <NUM-EXPRESSION>

<Height in Lines>

= <NUM-EXPRESSION>

<Width in Columns>

= <NUM-EXPRESSION>

<Mode>

= <NUM-EXPRESSION>

<Image Name>

= <STRING-EXPRESSION>

 

 

Meaning:

Draws an image on the print document.

 

This function only has an effect with ENABLE LPGDI.

 

<Line> and <Column> define the position of the upper left corner of the image on the print document in grid coordinates (see LPGRIDSETTING).

 

<Height in Lines> and <Width in Columns> specify the size in grid lines and grid columns, in which the image is to be printed. These two parameters only have a meaning with <Mode> = 1.

 

LPRINT_PICTURE returns the following values:

 

0: no error

-1: The handle LPGDI is not switched on

7500: Image not found

 

Parameter:

Line

Line of upper left corner of the image

Column

Column of upper left corner of the image

Height in Lines

Height of the image in lines

Width in Columns

Width of the image in columns

Mode

= 0: The picture is shown in its original size

= 1: The picture is enlarged or reduced to the size specified by <Height  in Lines> and <Width in Columns>.

Image Name

Name of the image

Note: The image is not automatically included in the program-jar file. The image is only included if it appears in a compiler instruction #ADD_IMAGE .

 

Sample:

H% = LPRINT_PICTURE(5,10,0,0,0,"Photo.jpg")

IF H% <> 0

THEN ... error ...

ENDIF

 

See also:

LOAD_PICTURE