|
Draw a Bézier spline on image.
Public Function DrawBezier( _ ByVal iLeft1 As Integer, _ ByVal iTop1 As Integer, _ ByVal iLeft2 As Integer, _ ByVal iTop2 As Integer, _ ByVal iLeft3 As Integer, _ ByVal iTop3 As Integer, _ ByVal iLeft4 As Integer, _ ByVal iTop4 As Integer, _ ByVal iPenWidth As Integer, _ ByVal iDashStyle As Integer, _ ByVal clrColor As Color, _ ByVal iAlpha As Integer, _ ByVal bAntiAlias As Bool )
|
Parameter
iLeft1 Specifies the x-coordinate of the starting point of the Bezier spline.
iTop1 Specifies the y-coordinate of the starting point of the Bezier spline.
iLeft2 Specifies the x-coordinate of the first control point of the Bezier spline.
iTop2 Specifies the y-coordinate of the first control point of the Bezier spline.
iLeft3 Specifies the x-coordinate of the second control point of the Bezier spline.
iTop3 Specifies the y-coordinate of the second control point of the Bezier spline.
iLeft4 Specifies the x-coordinate of the second control point of the Bezier spline.
iTop4 Specifies the y-coordinate of the second control point of the Bezier spline.
iPenWidth Specifies the width in pixel of the pen used to draw the Bezier spline.
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.
clrColor Specifies the color of the pen.
iAlpha Specifies the alpha value of the pen 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.DrawBezier 50, 0, 100, 200, 300, 100, 300, 20, 4, 0, RGB(255, 255, 0), 255, True
|
|
|