Partager via


IDWritePaintReader ::GetGradientStopColors, méthode (dwrite_3.h)

Récupère des informations de couleur sur chaque arrêt de dégradé, comme les index de palette.

Syntaxe

HRESULT GetGradientStopColors(
  UINT32             firstGradientStopIndex,
  UINT32             gradientStopCount,
  DWRITE_PAINT_COLOR *gradientStopColors
);

Paramètres

firstGradientStopIndex

Type : UINT32

Index du premier arrêt de dégradé à obtenir.

gradientStopCount

Type : UINT32

Nombre d’arrêts de dégradé à obtenir.

gradientStopColors

Type : _Out_writes_(gradientStopCount) DWRITE_PAINT_COLOR *

Reçoit les couleurs de l’arrêt de dégradé.

Valeur de retour

Un code d’erreur HRESULT standard.

Spécifications

Besoin Valeur
client minimum pris en charge Windows 10, version 1809 (avec windows App SDK 1.2 ou version ultérieure)
En-tête dwrite_3.h