Image Viewer CP ActiveX Control

DrawEllipse

 

Draw an ellipse on image.

Public Function DrawEllipse( _
   ByVal iX As Integer, _
   ByVal iY As Integer, _
   ByVal iWidth As Integer, _
   ByVal iHeight As Integer, _
   ByVal iPenWidth As Integer, _
   ByVal iDashStyle As Integer, _
   ByVal clrColor As Color, _
   ByVal iAlpha As Integer, _
   ByVal bAntiAlias As Bool
) 

 

Parameter

iX
   Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse.

iY
   Specifies the y-coordinate of the upper-left corner of the rectangle that bounds the ellipse.

iWidth
   Specifies the width of the rectangle that bounds the ellipse.

iHeight
   Specifies the height of the rectangle that bounds the ellipse.

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

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.DrawEllipse 200, 200, 300, 300, 3, 1, RGB(0, 0, 255), 255, True