SetFormFieldBackgroundColorSep

表單欄位、色彩

描述

設定指定表單欄位的背景顏色。類似 SetFormFieldBorderColor 函式,但使用以 AddSeparationColor 函式加入的特別色淡色值。PDF 規格不支援表單欄位使用特別色色彩空間,因此結果不一定有效,尤其欄位之後在 Acrobat 中被編輯時。此功能是為欄位將被扁平化的情境而加

語法

Delphi

Function TPDFlib.SetFormFieldBackgroundColorSep(Index: Integer; Const ColorName: WideString; Tint: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldBackgroundColorSep(Index As Long, ColorName As String, Tint As Double) As Long

DLL

int DLSetFormFieldBackgroundColorSep(int InstanceID, int Index, const wchar_t * ColorName, double Tint);

參數

Index表單欄位的索引
ColorName與 AddSeparationColor 函式搭配使用的特別色名稱
Tint要使用的顏色量。0 表示無色(白),1 表示最大顏色。

傳回值

0找不到表單欄位,或找不到特別色名稱
1指定表單欄位的背景顏色設定成功