ID2D1RenderTarget::CreateGradientStopCollection(constD2D1_GRADIENT_STOP*,UINT32,ID2D1GradientStopCollection**)-Methode (d2d1.h)

Erstellt eine ID2D1GradientStopCollection aus den angegebenen Farbverlaufsstopps, die die D2D1_GAMMA_2_2 Farbinterpolations-Gamma und den Clamp-Erweiterungsmodus verwendet.

Syntax

HRESULT CreateGradientStopCollection(
  const D2D1_GRADIENT_STOP    *gradientStops,
  UINT32                      gradientStopsCount,
  ID2D1GradientStopCollection **gradientStopCollection
);

Parameter

gradientStops

Typ: [in] D2D1_GRADIENT_STOP*

Ein Zeiger auf ein Array von D2D1_GRADIENT_STOP Strukturen.

gradientStopsCount

Typ: [in] UINT

Ein Wert größer oder gleich 1, der die Anzahl der Farbverlaufsstopps im gradientStops-Array angibt.

gradientStopCollection

Typ: [out] ID2D1GradientStopCollection**

Wenn diese Methode zurückgibt, enthält einen Zeiger auf einen Zeiger auf die neue Farbverlaufsstoppauflistung.

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 7, Windows Vista mit SP2 und Plattformupdate für Windows Vista [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 R2, Windows Server 2008 mit SP2 und Plattformupdate für Windows Server 2008 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile d2d1.h
Bibliothek D2d1.lib
DLL D2d1.dll

Weitere Informationen

Übersicht über Pinsel

D2D1_GRADIENT_STOP

Erstellen eines linearen Farbverlaufspinsels

Erstellen eines radialen Farbverlaufspinsels

ID2D1RenderTarget