Skip to content

Latest commit

 

History

History
96 lines (73 loc) · 2.33 KB

nf-gdiplusgraphics-graphics-fillrectangle(constbrush_constrectf_).md

File metadata and controls

96 lines (73 loc) · 2.33 KB
UID title description tech.root helpviewer_keywords ms.assetid ms.date ms.keywords targetos req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi f1_keywords dev_langs topic_type api_type api_location api_name
NF:gdiplusgraphics.Graphics.FillRectangle(constBrush,constRectF&)
Graphics::FillRectangle
The Graphics::FillRectangle method uses a brush to fill the interior of a rectangle. (overload 1/4)
gdiplus
Graphics::FillRectangle
8e8ec281-ff99-4fc7-bbf0-77d1ca3f128e
05/13/2019
Graphics::FillRectangle
Windows
function
gdiplusgraphics.h
Graphics::FillRectangle
gdiplusgraphics/Graphics::FillRectangle
c++
apiref
COM
gdiplusgraphics.h
Graphics::FillRectangle

FillRectangle(Brush*,RectF&)

-description

The Graphics::FillRectangle method uses a brush to fill the interior of a rectangle.

-parameters

-param brush

Pointer to a Brush that is used to paint the interior of the rectangle.

-param rect

Reference to the rectangle to be filled.

-returns

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

If the method fails, it returns one of the other elements of the Status enumeration.

-remarks

Examples

VOID Example_FillRectangle2(HDC hdc)
{
   Graphics graphics(hdc);

   // Create a SolidBrush object.
   SolidBrush blackBrush(Color(255, 0, 0, 0));

   // Create a RectF object.
   RectF fillRect(1.0f, 2.5f, 100.3f, 100.9f);

   // Fill the rectangle.
   graphics.FillRectangle(&blackBrush, fillRect);
}

-see-also

Graphics

Color

Rect

StringFormat