SetFormFieldBackgroundColorCMYK

表单字段、颜色

描述

设置指定表单字段的背景颜色,类似于 SetFormFieldBorderColor 函数,但颜色分量在 CMYK 颜色空间(青色、品红色、黄色、黑色)中指定,颜色参数的值范围为 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已成功设置指定表单字段的背景颜色