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 | 表單欄位的索引 Gray 灰色成分 |
|---|
傳回值
| 0 | 找不到表單欄位 |
|---|---|
| 1 | 指定表單欄位的背景顏色設定成功 |