SetLineColor
矢量图形、颜色
描述
为随后绘制的所有图形设置轮廓颜色,颜色参数的取值范围为 0 到 1,其中 0 表示颜色的 0%,1 表示颜色的 100%
语法
Delphi
Function TPDFlib.SetLineColor(Red, Green, Blue: Double): Integer;
ActiveX
Function PDFlib::SetLineColor(Red As Double, Green As Double, Blue As Double) As Long
DLL
int DLSetLineColor(int InstanceID, double Red, double Green, double Blue);
参数
| Red | 颜色的红色分量 |
|---|---|
| Green | 颜色的绿色分量 |
| Blue | 颜色的蓝色分量 |
返回值
| 1 | 线条颜色已设置 |
|---|---|
| 0 | PDF/X-1a 处于活动状态,或另一 PDF/X 模式处于活动状态且输出意图颜色空间不是 DeviceRGB;LastErrorCode 被置为 601 |