Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.58 KB

File metadata and controls

74 lines (52 loc) · 1.58 KB

Home

Function name : GdipFillRectangle

Group: GDI+ Graphics - Library: gdiplus


Uses a brush to fill the interior of a rectangle.


Code examples:

Custom GDI+ class
Adding a background image to VFP report (VFP9, ReportListener)

Declaration:

GpStatus WINGDIPAPI GdipFillRectangle(
	GpGraphics *graphics,
	GpBrush *brush,
	REAL x,
	REAL y,
	REAL width,
	REAL height
)
  

FoxPro declaration:

DECLARE INTEGER GdipFillRectangle IN gdiplus;
	INTEGER graphics,;
	INTEGER brush,;
	SINGLE  x,;
	SINGLE  y,;
	SINGLE  width,;
	SINGLE  height  

Parameters:

graphics [in] Pointer to a Graphics object.

brush [in] Pointer to a Brush that is used to paint the interior of the rectangle.

x [in] Real number that specifies the x-coordinate of the upper-left corner of the rectangle to be filled.

y [in] Real number that specifies the y-coordinate of the upper-left corner of the rectangle to be filled.

width [in] Real number that specifies the width of the rectangle to be filled.

height [in] Real number that specifies the height of the rectangle to be filled.


Return value:

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


Comments:

Create Brush object using functions GdipCreateSolidFill, GdipCreateHatchBrush, GdipCreateTexture etc.