|
Draw a texture line that connects two points on image.
Public Function DrawTextureLine( _ ByVal iLeft1 As Integer, _ ByVal iTop1 As Integer, _ ByVal iLeft2 As Integer, _ ByVal iTop2 As Integer, _ ByVal iPenWidth As Integer, _ ByVal iDashStyle As Integer, _ ByVal strTextureFilePath As String, _ ByVal iAlpha As Integer, _ ByVal bAntiAlias As Bool )
|
Parameter
iLeft1 Specifies the x-coordinate of the starting point of the line.
iTop Specifies the y-coordinate of the starting point of the line.
iLeft2 Specifies the x-coordinate of the ending point of the line.
iTop2 Specifies the y-coordinate of the ending point of the line.
iPenWidth Specifies the width in pixel of the pen used to draw the line.
iDashStyle Specifies the dash style of the pen. 0-Specifies a solid line. 1-Specifies a dashed line. 2-Specifies a dotted line. 3-Specifies an alternating dash-dot line. 4-Specifies an alternating dash-dot-dot line.
strTextureFilePath Specifies the texture source file path. It support bmp, jpg, gif, pnf, tif image format.
clrColor Specifies the color of the line.
iAlpha Specifies the alpha value of the ellipse color. The range from 0-255. 255 is fully visible.
bAntiAlias true - enable Anti-Aliasing algorithm, false - disable Anti-Aliasing algorithm.
Return Value
No return value.
Example
|
Visual Basic Syntax ImageViewer1.DrawTexturedLine 10, 50, 200, 500, 10, 0, "C:\image.bmp", 255, True
|
|
|