Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / DrawPie Method / DrawPie(Int32,Int32,Int32,Int32,Int32,Single,Single,Int32,Color,Boolean) Method
GdPicture image identifier.
Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.
The y-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.
Specifies the width of the rectangle that bounds the ellipse in which to draw the pie.
Specifies the height of the rectangle that bounds the ellipse in which to draw the pie.
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.
The angle, in degrees, between the starting and ending points of the arc that defines the pie. A positive value specifies clockwise rotation.
The width, in pixel, of the pen used to draw the rectangle.
Color of the pie. A suitable color value can be obtained by using the ARGB() method.
Set to True to apply the Antialiasing algorithm else False.





In This Topic
    DrawPie(Int32,Int32,Int32,Int32,Int32,Single,Single,Int32,Color,Boolean) Method
    In This Topic
    Draws a pie on a GdPicture image.
    Syntax
    'Declaration
     
    
    Public Overloads Function DrawPie( _
       ByVal ImageID As Integer, _
       ByVal DstLeft As Integer, _
       ByVal DstTop As Integer, _
       ByVal Width As Integer, _
       ByVal Height As Integer, _
       ByVal StartAngle As Single, _
       ByVal SweepAngle As Single, _
       ByVal PenWidth As Integer, _
       ByVal PenColor As Color, _
       ByVal AntiAlias As Boolean _
    ) As GdPictureStatus
    public GdPictureStatus DrawPie( 
       int ImageID,
       int DstLeft,
       int DstTop,
       int Width,
       int Height,
       float StartAngle,
       float SweepAngle,
       int PenWidth,
       Color PenColor,
       bool AntiAlias
    )
    public function DrawPie( 
        ImageID: Integer;
        DstLeft: Integer;
        DstTop: Integer;
        Width: Integer;
        Height: Integer;
        StartAngle: Single;
        SweepAngle: Single;
        PenWidth: Integer;
        PenColor: Color;
        AntiAlias: Boolean
    ): GdPictureStatus; 
    public function DrawPie( 
       ImageID : int,
       DstLeft : int,
       DstTop : int,
       Width : int,
       Height : int,
       StartAngle : float,
       SweepAngle : float,
       PenWidth : int,
       PenColor : Color,
       AntiAlias : boolean
    ) : GdPictureStatus;
    public: GdPictureStatus DrawPie( 
       int ImageID,
       int DstLeft,
       int DstTop,
       int Width,
       int Height,
       float StartAngle,
       float SweepAngle,
       int PenWidth,
       Color PenColor,
       bool AntiAlias
    ) 
    public:
    GdPictureStatus DrawPie( 
       int ImageID,
       int DstLeft,
       int DstTop,
       int Width,
       int Height,
       float StartAngle,
       float SweepAngle,
       int PenWidth,
       Color PenColor,
       bool AntiAlias
    ) 

    Parameters

    ImageID
    GdPicture image identifier.
    DstLeft
    Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.
    DstTop
    The y-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.
    Width
    Specifies the width of the rectangle that bounds the ellipse in which to draw the pie.
    Height
    Specifies the height of the rectangle that bounds the ellipse in which to draw the pie.
    StartAngle
    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.
    SweepAngle
    The angle, in degrees, between the starting and ending points of the arc that defines the pie. A positive value specifies clockwise rotation.
    PenWidth
    The width, in pixel, of the pen used to draw the rectangle.
    PenColor
    Color of the pie. A suitable color value can be obtained by using the ARGB() method.
    AntiAlias
    Set to True to apply the Antialiasing algorithm else False.

    Return Value

    A member of the GdPictureStatus enumeration.
    See Also