Accusoft ImagXpress 13
DrawPolygon Method
The x-coordinate (in pixels) of the first coordinate for a 2 to 6 sided hexagon.
The y-coordinate (in pixels) of the first coordinate for a 2 to 6 sided polygon.
The x-coordinate (in pixels) of the second coordinate for a 2 to 6 sided polygon.
The y-coordinate (in pixels) of the second coordinate for a 2 to 6 sided polygon.
The x-coordinate (in pixels) of the third coordinate for a 2 to 6 sided polygon.
The y-coordinate (in pixels) of the third coordinate for a 2 to 6 sided polygon.
The x-coordinate (in pixels) of the fourth coordinate for a 2 to 6 sided polygon.
The y-coordinate (in pixels) of the fourth coordinate for a 2 to 6 sided polygon.
The x-coordinate (in pixels) of the fifth coordinate for a 2 to 6 sided polygon.
The y-coordinate (in pixels) of the fifth coordinate for a 2 to 6 sided polygon.
The x-coordinate (in pixels) of the sixth coordinate for a 2 to 6 sided polygon.
The y-coordinate (in pixels) of the sixth coordinate for a 2 to 6 sided polygon.

The RGB color of the circles outline. You can use the RGB function to specify the color.

Note: Value specified must be in a valid OLE_COLOR range.

How many points there are to the polygon. Thus it is also the number of the coordinates (x, y pairs) the function will use when generating the polygon. Coordinate pairs beyond the numPoints will be ignored but must be passed regardless.

Valid values are three through six.

Description
Draws a 2-6 sided polygon onto the image.
Syntax
Visual Basic
Public Sub DrawPolygon( _
   ByVal x1 As Long, _
   ByVal y1 As Long, _
   ByVal x2 As Long, _
   ByVal y2 As Long, _
   ByVal x3 As Long, _
   ByVal y3 As Long, _
   ByVal x4 As Long, _
   ByVal y4 As Long, _
   ByVal x5 As Long, _
   ByVal y5 As Long, _
   ByVal x6 As Long, _
   ByVal y6 As Long, _
   ByVal penColor As OLE_COLOR, _
   ByVal numPoints As Long _
) 
Parameters
x1
The x-coordinate (in pixels) of the first coordinate for a 2 to 6 sided hexagon.
y1
The y-coordinate (in pixels) of the first coordinate for a 2 to 6 sided polygon.
x2
The x-coordinate (in pixels) of the second coordinate for a 2 to 6 sided polygon.
y2
The y-coordinate (in pixels) of the second coordinate for a 2 to 6 sided polygon.
x3
The x-coordinate (in pixels) of the third coordinate for a 2 to 6 sided polygon.
y3
The y-coordinate (in pixels) of the third coordinate for a 2 to 6 sided polygon.
x4
The x-coordinate (in pixels) of the fourth coordinate for a 2 to 6 sided polygon.
y4
The y-coordinate (in pixels) of the fourth coordinate for a 2 to 6 sided polygon.
x5
The x-coordinate (in pixels) of the fifth coordinate for a 2 to 6 sided polygon.
y5
The y-coordinate (in pixels) of the fifth coordinate for a 2 to 6 sided polygon.
x6
The x-coordinate (in pixels) of the sixth coordinate for a 2 to 6 sided polygon.
y6
The y-coordinate (in pixels) of the sixth coordinate for a 2 to 6 sided polygon.
penColor

The RGB color of the circles outline. You can use the RGB function to specify the color.

Note: Value specified must be in a valid OLE_COLOR range.

numPoints

How many points there are to the polygon. Thus it is also the number of the coordinates (x, y pairs) the function will use when generating the polygon. Coordinate pairs beyond the numPoints will be ignored but must be passed regardless.

Valid values are three through six.

Remarks

Polygons are many-sided figures, with sides that are line segments. To fill a polygon, set the DrawFillColor and DrawFillStyle properties of the object on which the pie is drawn.

The width of the line used to draw the polygon depends on the setting of the DrawWidth property. The way the polygon is drawn on the background depends on the setting of the DrawMode and DrawStyle properties.

This method draws into the control's DIB.

See Also

ImagXpress Object  | ImagXpress Members  | DrawWidth Property  | DrawStyle Property  | DrawMode Property  | DrawFillColor Property  | DrawFillStyle Property

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback