DrawLine Method

See Also     Examples     Applies To

Draws a line into the native image.

Syntax

object.DrawLine (nSrcX, nSrcY, nDstX, nDstY, nPenWidth, nColor, bAntiAlias)

The DrawLine syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nSrcX Required. Long. Specifies the x-coordinate of the starting point of the line.
nSrcY Required. Long. Specifies the y-coordinate of the starting point of the line.
nDstX Required. Long. Specifies the x-coordinate of the ending point of the line.
nDstY Required. Long. Specifies the y-coordinate of the ending point of the line.
nPenWidth Required. Long. The width in pixel of the pen used to draw the line.
nColor Optional. Long. Default value is Black. ARGB long color value used to draw the line.
bAntiAlias Optional. Boolean. Default value is False. Set to True to apply the Antialiasing algorithm else False.

Returns

ImagingStatus

Remarks

The ImagingStatus constants are defined HERE

Category

Draw (Lines and Shapes)





© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.