|
Syntax:
|
LPPOLYGON(<Type>,<Coordinates>,<Red>,<Green>,<Blue>,<Fill>,<Line
Width>)
|
<Type>
|
= <NUM-EXPRESSION>
|
|
<Coordinates>
|
= <STRING-EXPRESSION>
|
|
<Red>
|
= <NUM-EXPRESSION>
|
|
<Green>
|
= <NUM-EXPRESSION>
|
|
<Blue>
|
= <NUM-EXPRESSION>
|
|
<Fill>
|
= <NUM-EXPRESSION>
|
|
<Line Width>
|
= <NUM-EXPRESSION>
|
|
|
Meaning:
|
Draws a polygon on the print document.
This function only has an effect with ENABLE LPGDI.
<Type> specifies to which measure the
coordinates refer:
|
Type
|
Measure
|
|
1
|
TWIPS (1 TWIP = 1/20 Point)
|
|
2
|
Point (1 Point = 1/72 Inch)
|
|
3
|
Millimeter
|
|
otherwise
|
Grid coordinates (Columns)
|
LPPOLYGON returns the following values:
1: no error
-1: The switch LPGDI is not enabled
-2: The coordinates do not have the form Y,X
-3: <Coordinates> is empty
|
|
Parameter:
|
Type
|
Specifies the measure of the coordinates.
|
Coordinates
|
Contains
separated by semi-colon the coordinates of the polygon. Each coordinate is
to be specified in the following form: Y,X (Y = Y-coordinate, X =
X-coordinate). If the last coordinate in <Coordinates> does not equal
the first coordinate, a connecting line between the last and first
coordinate is created automatically.
|
Red
|
Red value
|
Green
|
Green value
|
Blue
|
Blue value
|
Fill
|
= 0: The margin of the polygon is drawn in the
size <Border Size> in the color <Red>, <Green>,
<Blue>.
= otherwise: The interior of the polygon is
filled with the color <Red>, <Green>, <Blue>.
|
Line Width
|
Width of line in TWIPS
|
|
|
Sample:
|
/* Draw a filled red
triangle with the coordinates:
/* (5,10) (5,12.5) (3.5,11.25)
H% = LPPOLYGON(4,"5,10;5,12.5;3.5,11.25",255,0,0,1,20)
|