GxImage: DrawLine

DrawLine

This method draws a line between (x1,y1) and (x2,y2) points. The coordinates must be in image coordinates.



 Public Function DrawLine(
	  ByVal x1 As Long,
	  ByVal y1 As Long,
	  ByVal x2 As Long,
	  ByVal y2 As Long ) As Long

Parameters

x1
Horizontal image coordinate of the first point.
y1
Vertical image coordinate of the first point.
x2
Horizontal image coordinate of the second point.
y2
Vertical image coordinate of the second point.

Return Values

On error false (0) is returned and the error code/string in the GX system is set appropriately.

Languages

[Visual Basic] Public Function DrawLine(ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long) As Long

[Delphi] function DrawLine(x1 : Integer; y1 : Integer; x2 : Integer; y2 : Integer) : Integer;

[C++] long DrawLine(long x1, long y1, long x2, long y2);

Remarks

See Also

Class GxImage Overview GxImage Properties GxImage Methods DblClick DrawMode