Share via


ID2D1SvgDocument::CreatePaint(D2D1_SVG_PAINT_TYPE,constD2D1_COLOR_F&,PCWSTR,ID2D1SvgPaint**)-Methode (d2d1svg.h)

Erstellt ein Paint-Objekt, mit dem die Eigenschaften "Füllung" oder "Strich" festgelegt werden können.

Syntax

HRESULT CreatePaint(
                 D2D1_SVG_PAINT_TYPE  paintType,
  [ref]          const D2D1_COLOR_F & color,
  [in, optional] PCWSTR               id,
  [out]          ID2D1SvgPaint        **paint
);

Parameter

paintType

Typ: D2D1_SVG_PAINT_TYPE

Gibt den Typ des zu erstellenden Paint-Objekts an.

[ref] color

Typ: const D2D1_COLOR_F

Die Farbe, die verwendet wird, wenn paintType D2D1_SVG_PAINT_TYPE_COLOR ist.

[in, optional] id

Typ: PCWSTR

Die Element-ID, die als Paint-Server fungiert. Diese ID wird verwendet, wenn der Farbtyp D2D1_SVG_PAINT_TYPE_URI ist.

[out] paint

Typ: ID2D1SvgPaint**

Wenn die -Methode abgeschlossen ist, enthält diese einen Zeiger auf das erstellte Paint-Objekt.

Rückgabewert

Typ: HRESULT

Diese Methode gibt einen HRESULT-Erfolgs- oder Fehlercode zurück.

Anforderungen

   
Zielplattform Windows
Kopfzeile d2d1svg.h
DLL Direct2d.dll

Weitere Informationen

ID2D1SvgDocument