Metodo ID2D1CommandSink::D rawGeometry (d2d1_1.h)

Indica la geometria da disegnare nel sink del comando.

Sintassi

HRESULT DrawGeometry(
  [in]           ID2D1Geometry    *geometry,
  [in]           ID2D1Brush       *brush,
                 FLOAT            strokeWidth,
  [in, optional] ID2D1StrokeStyle *strokeStyle
);

Parametri

[in] geometry

Tipo: ID2D1Geometry *

Geometria da tracciare.

[in] brush

Tipo: ID2D1Brush*

Pennello che verrà utilizzato per riempire la geometria tracciata.

strokeWidth

Tipo: FLOAT

Larghezza del tratto.

[in, optional] strokeStyle

Tipo: ID2D1StrokeStyle*

Stile del tratto.

Valore restituito

Tipo: HRESULT

An HRESULT.

Commenti

I puntini di sospensione e i rettangoli arrotondati vengono convertiti nelle geometrie di ellisse e rettangolo arrotondate corrispondenti prima di chiamare nel metodo DrawGeometry .

Requisiti

   
Client minimo supportato Windows 8 e Platform Update 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 rawGeometry