Accusoft ImagXpress 13
DrawLine Method
The x-coordinate (in pixels) of the starting point for the line or rectangle.
The y-coordinate (in pixels) of the starting point for the line or rectangle.
The x-coordinate (in pixels) of the end point for the line or rectangle.
The y-coordinate (in pixels) of the end point for the line or rectangle.
The RGB color used to draw the line. You can use the RGB function to specify the color.

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

A Boolean value that if True, causes a box to be drawn using the coordinates to specify opposite corners of the box.

A Boolean value that if True and the box option is used, specifies that the box is filled with the same color used to draw the box. You cannot use fill without box. If box is used without fill, the box is filled with the current DrawFillColor and DrawFillStyle properties.

Description
Draws lines and rectangles onto the image.
Syntax
Visual Basic
Public Sub DrawLine( _
   ByVal x1 As Long, _
   ByVal y1 As Long, _
   ByVal x2 As Long, _
   ByVal y2 As Long, _
   ByVal Color As OLE_COLOR, _
   ByVal box As Boolean, _
   ByVal fill As Boolean _
) 
Parameters
x1
The x-coordinate (in pixels) of the starting point for the line or rectangle.
y1
The y-coordinate (in pixels) of the starting point for the line or rectangle.
x2
The x-coordinate (in pixels) of the end point for the line or rectangle.
y2
The y-coordinate (in pixels) of the end point for the line or rectangle.
Color
The RGB color used to draw the line. You can use the RGB function to specify the color.

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

box
A Boolean value that if True, causes a box to be drawn using the coordinates to specify opposite corners of the box.
fill

A Boolean value that if True and the box option is used, specifies that the box is filled with the same color used to draw the box. You cannot use fill without box. If box is used without fill, the box is filled with the current DrawFillColor and DrawFillStyle properties.

Remarks

To draw connected lines, begin a subsequent line at the end point of the previous line.

The width of the line drawn depends on the setting of the DrawWidth property. The way a line or box 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  | DrawMode Property  | DrawStyle Property  | DrawFillColor Property  | DrawFillStyle Property

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback