Graphics ::FillRectangle(constBrush*,constRect&) méthode (gdiplusgraphics.h)

La méthode Graphics ::FillRectangle utilise un pinceau pour remplir l’intérieur d’un rectangle.

Syntaxe

Status FillRectangle(
  [in]      const Brush  *brush,
  [in, ref] const Rect & rect
);

Paramètres

[in] brush

Type : const Brush*

Pointeur vers un pinceau utilisé pour peindre l’intérieur du rectangle.

[in, ref] rect

Type : const Rect

Référence au rectangle à remplir.

Valeur retournée

Type : État

Si la méthode réussit, elle retourne Ok, qui est un élément de l’énumération Status .

Si la méthode échoue, elle retourne l’un des autres éléments de l’énumération Status .

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows XP, Windows 2000 Professionnel [applications de bureau uniquement]
Serveur minimal pris en charge Windows 2000 Server [applications de bureau uniquement]
Plateforme cible Windows
En-tête gdiplusgraphics.h (include Gdiplus.h)
Bibliothèque Gdiplus.lib
DLL Gdiplus.dll

Voir aussi

Color

Graphismes

Rect

État