DrawLine Method

See Also     Examples     Applies To

Draws a line into the native GdPicture image.

Syntax

object.DrawLine (nSrcLeft, nSrcTop, nDstLeft, nDstTop, nPenWidth, nColorARGB, bAntiAlias)

The DrawLine syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nSrcLeft Required. Long. Specifies the x-coordinate of the starting point of the line.
nSrcTop Required. Long. Specifies the y-coordinate of the starting point of the line.
nDstLeft Required. Long. Specifies the x-coordinate of the ending point of the line.
nDstTop 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.
nColorARGB Optional. Long. Default value is Black. 32-bit Color (ARGB) used to draw the line.
bAntiAlias Optional. Boolean. Default value is False. Set to True to apply the Antialiasing algorithm else False.

Returns

Long. GdPictureStatus

Category

Draw (Lines and Shapes)

Visual Basic Sample

Draws a Semi transparent Red line using 2 pixels pen size from (0,0) to (200,200) on the native image


Call Object.DrawLine(0, 0, 200, 200, 2, Object.argb(125, 255, 0, 0), True)






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.