|
Draw an arc on image.
Public Function DrawArc( _ ByVal iLeft As Integer, _ ByVal iTop As Integer, _ ByVal iWidth As Integer, _ ByVal iHeight As Integer, _ ByVal iPenWidth As Integer, _ ByVal iDashStyle As Integer, _ ByVal iStartAngle As Double, _ ByVal iSweepAngle As Double, _ ByVal clrColor As Color, _ ByVal iAlpha As Integer, _ ByVal bAntiAlias As Bool )
|
Parameter
iLeft Specifies the x-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
iTop Specifies the y-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.
iWidth Specifies the width of the ellipse that contains the arc.
iHeight Specifies the height of the ellipse that contains the arc.
iPenWidth Specifies the width in pixel of the pen used to draw the arc.
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.
iStartAngle Specifies the angle between the x-axis and the starting point of the arc.
iSweepAngle Specifies the angle between the starting and ending points of the arc.
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.DrawArc 10, 10, 100, 100, 2, 0, 0, 90, RGB(255, 0, 0), 255, True
|
|
|