You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Drawing (Shapes) > DrawArc Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.DrawArc Method

Draws an arc on a GdPicture image. The arc is part of an ellipse.

C#
public GdPictureStatus DrawArc(
    int ImageID, 
    int DstLeft, 
    int DstTop, 
    int Width, 
    int Height, 
    Single StartAngle, 
    Single SweepAngle, 
    int PenWidth, 
    Color PenColor, 
    Boolean AntiAlias
);
Visual Basic
Public Function DrawArc(
    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
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
DstLeft 
Specifies the x-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.  
DstTop 
Specifies the y-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.  
Width 
Specifies the width of the ellipse that contains the arc.  
Height 
Specifies the height of the ellipse that contains the arc.  
StartAngle 
Specifies the angle between the x-axis and the starting point of the arc.  
SweepAngle 
Specifies the angle between the starting and ending points of the arc.  
PenWidth 
The width in pixel of the pen used to draw the arc.  
PenColor 
Color Object. You can build a Color Object using the ARGB() function. Color used to draw the arc.  
AntiAlias 
Set to True to apply the Antialiasing algorithm else False.  
Returns

A member of the GdPictureStatus enumeration.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.