Image Viewer CP ActiveX Control

DrawPie

 

Draw a pie on image.

Public Function DrawPie( _
   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 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.

iPenWidth
   Specifies the width in pixel of the pen used to draw the pie.

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, 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.DrawPie 150, 120, 150, 150, 2, 0, 0, 90, RGB(100, 200, 100), 255, True