Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 1.37 KB

File metadata and controls

73 lines (51 loc) · 1.37 KB

Home

Function name : GdipDrawRectangle

Group: GDI+ Graphics - Library: gdiplus


Uses a pen to draw a rectangle.


Code examples:

Custom GDI+ class

Declaration:

GpStatus WINGDIPAPI GdipDrawRectangle(
	GpGraphics *graphics,
	GpPen *pen,
	REAL x,
	REAL y,
	REAL width,
	REAL height
)
  

FoxPro declaration:

DECLARE INTEGER GdipDrawRectangle IN gdiplus;
	INTEGER graphics,;
	INTEGER gdipen,;
	SINGLE  x,;
	SINGLE  y,;
	SINGLE  width,;
	SINGLE  height  

Parameters:

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.


Return value:

If the method succeeds, it returns Ok (0), which is an element of the Status enumeration.


Comments:

Create Pen object with GdipCreatePen1, GdipCreatePen2 or GdipClonePen function.