GetFormFieldBackgroundColor

Champs de formulaire, couleur

Description

Renvoie la couleur d’arrière-plan du champ spécifié. Le nombre de valeurs disponibles dépend du type de couleur du champ de formulaire. Le nombre de composantes disponibles peut être obtenu avec la fonction theGetFormFieldBackgroundColorType

0 = Aucune couleur indiquée

1 = DeviceGray (1 composante)

3 = DeviceRGB (3 composantes)

4 = CMYK (4 composantes

Syntaxe

Delphi

Function TPDFlib.GetFormFieldBackgroundColor(Index, ColorComponent: Integer): Double;

ActiveX

Function PDFlib::GetFormFieldBackgroundColor(Index As Long, ColorComponent As Long) As Double

DLL

double DLGetFormFieldBackgroundColor(int InstanceID, int Index, int ColorComponent);

Paramètres

IndexIndice du champ de formulaire à examiner
ColorComponentPour DeviceGray, type 1 : 1 = Gray Pour DeviceRGB, type 3 : 1 = Red 2 = Green 3 = Blue Pour DeviceCMYK, type 4 : 1 = Cyan 2 = Magenta 3 = Yellow 4 = Black