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フォームフィールドのインデックス
ColorNameAddSeparationColor 関数で使用された分版色の名前
Tint使用する色の量です。0 は色なし (白)、1 は最大の色を示します

戻り値

0フォームフィールドが見つからないか、分離色名が見つかりませんでした
1指定フォームフィールドの背景色は正常に設定された