|
Draw a pie on image and uses a brush to fill the interior of a pie.
Public Function DrawFillPie( _ ByVal iLeft As Integer, _ ByVal iTop As Integer, _ ByVal iWidth As Integer, _ ByVal iHeight 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 rectangle that bounds the ellipse in which to draw the pie.
iTop Specifies the y-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.
iWidth Specifies the width of the rectangle that bounds the ellipse in which to draw the pie.
iHeight Specifies the height of the rectangle that bounds the ellipse in which to draw the pie.
iStartAngle Specifies the angle, in degrees, between the x-axis and the starting point of the arc that defines the pie. A positive value specifies clockwise rotation.
iSweepAngle Specifies the angle, in degrees, between the starting and ending points of the arc that defines the pie. A positive value specifies clockwise rotation.
clrColor Specifies the color of the pie.
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.DrawFillPie 0, 300, 50, 50, 0, 270, RGB(128, 0, 0), 255, True
|
|
|