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 | 表單欄位的索引 |
|---|---|
| G | 色彩的灰色分量,0 到 1。DLL 與 ActiveX 簽名把此參數命名為 Gray |
傳回值
| 0 | 找不到表單欄位 |
|---|---|
| 1 | 指定表單欄位的背景色彩已成功設定 |