SetFormFieldBackgroundColorGray

表单字段、颜色

描述

设置指定表单字段的背景颜色,类似 SetFormFieldBackgroundColor 函数,但在 Gray 色彩空间中指定单个颜色分量,可取值范围为 0 到 1

语法

Delphi

Function TPDFlib.SetFormFieldBackgroundColorGray(Index: Integer; G: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldBackgroundColorGray(Index As Long, gray As Double) As Long

DLL

int DLSetFormFieldBackgroundColorGray(int InstanceID, int Index, double gray);

参数

Index表单字段索引 灰色 灰色分量

返回值

0找不到表单字段
1已成功设置指定表单字段的背景颜色