GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / DrawRectangle Method / DrawRectangle(Int32,Int32,Int32,Int32,Int32,Int32,Int32,Boolean) 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.
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 ARGBI() method.
Set to True to apply the Antialiasing algorithm else False.





In This Topic
DrawRectangle(Int32,Int32,Int32,Int32,Int32,Int32,Int32,Boolean) Method
In This Topic
Draws a rectangle on a GdPicture image. The drawing color is specified with an integer value.
Syntax
'Declaration
 
Public Overloads Function DrawRectangle( _
   ByVal ImageID As Integer, _
   ByVal DstLeft As Integer, _
   ByVal DstTop As Integer, _
   ByVal Width As Integer, _
   ByVal Height As Integer, _
   ByVal PenWidth As Integer, _
   ByVal PenColor As Integer, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public GdPictureStatus DrawRectangle( 
   int ImageID,
   int DstLeft,
   int DstTop,
   int Width,
   int Height,
   int PenWidth,
   int PenColor,
   bool AntiAlias
)
public function DrawRectangle( 
    ImageID: Integer;
    DstLeft: Integer;
    DstTop: Integer;
    Width: Integer;
    Height: Integer;
    PenWidth: Integer;
    PenColor: Integer;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawRectangle( 
   ImageID : int,
   DstLeft : int,
   DstTop : int,
   Width : int,
   Height : int,
   PenWidth : int,
   PenColor : int,
   AntiAlias : boolean
) : GdPictureStatus;
public: GdPictureStatus DrawRectangle( 
   int ImageID,
   int DstLeft,
   int DstTop,
   int Width,
   int Height,
   int PenWidth,
   int PenColor,
   bool AntiAlias
) 
public:
GdPictureStatus DrawRectangle( 
   int ImageID,
   int DstLeft,
   int DstTop,
   int Width,
   int Height,
   int PenWidth,
   int 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.
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 ARGBI() method.
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
See Also