Condividi tramite


Metodo ID2D1CommandSink::D rawRectangle (d2d1_1.h)

Disegna un rettangolo.

Sintassi

HRESULT DrawRectangle(
  [in]           const D2D1_RECT_F *rect,
  [in]           ID2D1Brush        *brush,
                 FLOAT             strokeWidth,
  [in, optional] ID2D1StrokeStyle  *strokeStyle
);

Parametri

[in] rect

Tipo: const D2D1_RECT_F*

Rettangolo da disegnare nel sink dei comandi.

[in] brush

Tipo: ID2D1Brush*

Pennello usato per eseguire il tratto della geometria.

strokeWidth

Tipo: FLOAT

Larghezza del tratto.

[in, optional] strokeStyle

Tipo: ID2D1StrokeStyle*

Stile del tratto.

Valore restituito

Tipo: HRESULT

Se il metodo ha esito positivo, restituisce S_OK. Se ha esito negativo, restituisce un codice di errore HRESULT .

Requisiti

Requisito Valore
Client minimo supportato Windows 8 e Aggiornamento della piattaforma per Windows 7 [app desktop | App UWP]
Server minimo supportato Windows Server 2012 e Aggiornamento della piattaforma per Windows Server 2008 R2 [app desktop | App UWP]
Piattaforma di destinazione Windows
Intestazione d2d1_1.h
DLL D2d1.dll

Vedi anche

ID2D1CommandList::Stream

ID2D1CommandSink

ID2D1RenderTarget::D rawRectangle