Group: GDI+ Graphics - Library: gdiplus
GpStatus WINGDIPAPI GdipDrawRectangle(
GpGraphics *graphics,
GpPen *pen,
REAL x,
REAL y,
REAL width,
REAL height
)
DECLARE INTEGER GdipDrawRectangle IN gdiplus;
INTEGER graphics,;
INTEGER gdipen,;
SINGLE x,;
SINGLE y,;
SINGLE width,;
SINGLE height graphics [in] Pointer to a Graphics object.
pen [in] Pointer to a Pen that is used to draw the rectangle.
x [in] Real number that specifies the x-coordinate of the upper-left corner of the rectangle.
y [in] Real number that specifies the y-coordinate of the upper-left corner of the rectangle.
width [in] Real number that specifies the width of the rectangle.
height [in] Real number that specifies the height of the rectangle.
If the method succeeds, it returns Ok (0), which is an element of the Status enumeration.
Create Pen object with GdipCreatePen1, GdipCreatePen2 or GdipClonePen function.
Home