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 |
|
8e8ec281-ff99-4fc7-bbf0-77d1ca3f128e |
05/13/2019 |
Graphics::FillRectangle |
Windows |
function |
gdiplusgraphics.h |
|
|
|
|
|
|
The Graphics::FillRectangle method uses a brush to fill the interior of a rectangle.
Pointer to a Brush that is used to paint the interior of the rectangle.
Reference to the rectangle to be filled.
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.
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);
}