Share via


GradientStop-Funktion (d2d1helper.h)

Erstellt eine D2D1_GRADIENT_STOP-Struktur .

Syntax

D2D1_GRADIENT_STOP GradientStop(
            FLOAT                position,
  [in, ref] const D2D1_COLOR_F & color
);

Parameter

position

Typ: FLOAT

Ein Wert, der die relative Position des Farbverlaufsstopps im Pinsel angibt. Der Wert 0,0 gibt an, dass der Stopp am Anfang des Farbverlaufsvektors positioniert ist, während der Wert 1,0 angibt, dass der Stopp am Ende des Farbverlaufsvektors positioniert wird. Stopps außerhalb des Bereichs 0.0-1.0 sind möglicherweise nicht direkt sichtbar, wirken sich aber dennoch auf das Farbverlaufsmuster aus.

[in, ref] color

Typ: const D2D1_COLOR_F

Die Farbe des Farbverlaufsstopps.

Rückgabewert

Typ: D2D1_GRADIENT_STOP

Der neue Farbverlaufsstopp.

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 d2d1helper.h
Bibliothek D2d1.lib
DLL D2d1.dll

Weitere Informationen

D2D1_GRADIENT_STOP

ID2D1LinearGradientBrush

ID2D1RadialGradientBrush