GetFormFieldBackgroundColor

表单字段、颜色

描述

返回指定字段的背景颜色。可用值数量取决于表单字段中指定的颜色类型。可用分量数量可使用 theGetFormFieldBackgroundColorType 函数获取

0 = 未指定颜色

1 = DeviceGray(1 个分量)

3 = DeviceRGB(3 个分量)

4 = CMYK(4 个分量

语法

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);

参数

Index要检查的表单字段索引
ColorComponent对于 DeviceGray(颜色类型 = 1)1 = 灰度级别 对于 DeviceRGB(颜色类型 = 3)1 = 红色 2 = 绿色 3 = 蓝色 对于 DeviceCMYK(颜色类型 = 4)1 = 青色 2 = 品红色 3 = 黄色 4 = 黑色