SetFormFieldBackgroundColorCMYK

表單欄位、色彩

描述

設定指定表單欄位的背景顏色。類似 SetFormFieldBorderColor 函式,但顏色成分以 CMYK 色彩空間(Cyan、Magenta、Yellow、Black)指定。顏色參數值域為 0 到 1,0 代表 0%、1 代表 100%

語法

Delphi

Function TPDFlib.SetFormFieldBackgroundColorCMYK(Index: Integer; C, M, Y, K: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldBackgroundColorCMYK(Index As Long, C As Double, M As Double, Y As Double, K As Double) As Long

DLL

int DLSetFormFieldBackgroundColorCMYK(int InstanceID, int Index, double C, double M, double Y, double K);

參數

Index表單欄位的索引
C顏色的青成分
M顏色的洋紅成分
Y顏色的黃成分
K顏色的黑成分

傳回值

0找不到表單欄位 指定表單欄位的背景顏色設定成功
1