GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / DrawRoundedRectangle Method
GdPicture image identifier.
Specifies the x-coordinate of the upper-left corner of the rectangle.
Specifies the y-coordinate of the upper-left corner of the rectangle.
Specifies the width of the rectangle.
Specifies the height of the rectangle.
Size of the radius in pixel.
The width, in pixel, of the pen used to draw the rectangle.
Color of the rectangle. 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
DrawRoundedRectangle Method (GdPictureImaging)
In This Topic
Draws a rounded rectangle on a GdPicture image.
Syntax
'Declaration
 
Public Function DrawRoundedRectangle( _
   ByVal ImageID As Integer, _
   ByVal DstLeft As Single, _
   ByVal DstTop As Single, _
   ByVal Width As Single, _
   ByVal Height As Single, _
   ByVal Radius As Single, _
   ByVal PenWidth As Single, _
   ByVal PenColor As GdPictureColor, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public GdPictureStatus DrawRoundedRectangle( 
   int ImageID,
   float DstLeft,
   float DstTop,
   float Width,
   float Height,
   float Radius,
   float PenWidth,
   GdPictureColor PenColor,
   bool AntiAlias
)
public function DrawRoundedRectangle( 
    ImageID: Integer;
    DstLeft: Single;
    DstTop: Single;
    Width: Single;
    Height: Single;
    Radius: Single;
    PenWidth: Single;
    PenColor: GdPictureColor;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawRoundedRectangle( 
   ImageID : int,
   DstLeft : float,
   DstTop : float,
   Width : float,
   Height : float,
   Radius : float,
   PenWidth : float,
   PenColor : GdPictureColor,
   AntiAlias : boolean
) : GdPictureStatus;
public: GdPictureStatus DrawRoundedRectangle( 
   int ImageID,
   float DstLeft,
   float DstTop,
   float Width,
   float Height,
   float Radius,
   float PenWidth,
   GdPictureColor PenColor,
   bool AntiAlias
) 
public:
GdPictureStatus DrawRoundedRectangle( 
   int ImageID,
   float DstLeft,
   float DstTop,
   float Width,
   float Height,
   float Radius,
   float PenWidth,
   GdPictureColor PenColor,
   bool AntiAlias
) 

Parameters

ImageID
GdPicture image identifier.
DstLeft
Specifies the x-coordinate of the upper-left corner of the rectangle.
DstTop
Specifies the y-coordinate of the upper-left corner of the rectangle.
Width
Specifies the width of the rectangle.
Height
Specifies the height of the rectangle.
Radius
Size of the radius in pixel.
PenWidth
The width, in pixel, of the pen used to draw the rectangle.
PenColor
Color of the rectangle. 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.
Remarks

This method requires the Image Documents component to run.

See Also