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

Draws a Bezier spline on a GdPicture image.

C#
public GdPictureStatus DrawBezier(
    int ImageID, 
    int Left1, 
    int Top1, 
    int Left2, 
    int Top2, 
    int Left3, 
    int Top3, 
    int Left4, 
    int Top4, 
    int PenWidth, 
    Color PenColor, 
    Boolean AntiAlias
);
Visual Basic
Public Function DrawBezier(
    ByVal ImageID As Integer, 
    ByVal Left1 As Integer, 
    ByVal Top1 As Integer, 
    ByVal Left2 As Integer, 
    ByVal Top2 As Integer, 
    ByVal Left3 As Integer, 
    ByVal Top3 As Integer, 
    ByVal Left4 As Integer, 
    ByVal Top4 As Integer, 
    ByVal PenWidth As Integer, 
    ByVal PenColor As Color, 
    ByVal AntiAlias As Boolean
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
Left1 
Specifies the x-coordinate of the starting point of the Bezier spline.  
Top1 
Specifies the y-coordinate of the starting point of the Bezier spline.  
Left2 
Specifies the x-coordinate of the first control point of the Bezier spline.  
Top2 
Specifies the y-coordinate of the first control point of the Bezier spline.  
Left3 
Specifies the x-coordinate of the second control point of the Bezier spline.  
Top3 
Specifies the y-coordinate of the second control point of the Bezier spline.  
Left4 
Specifies the x-coordinate of the ending point of the Bezier spline.  
Top4 
Specifies the y-coordinate of the ending point of the Bezier spline.  
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 Bezier.  
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.