SetFillColor
Vector graphics, Color
Description
Sets the fill color for any subsequently drawn graphics until the next NewPage or SelectPage call. The values for Red, Green and Blue range from 0 to 1, where 0 indicates 0% and 1 indicates 100% of the color.
Syntax
Delphi
Function TPDFlib.SetFillColor(Red, Green, Blue: Double): Integer;
ActiveX
Function PDFlib::SetFillColor(Red As Double, Green As Double, Blue As Double) As Long
DLL
int DLSetFillColor(int InstanceID, double Red, double Green, double Blue);
Parameters
| Red | The red component of the color |
|---|---|
| Green | The green component of the color |
| Blue | The blue component of the color |
Return values
Returns 1 when the fill color was set. Returns 0 with LastErrorCode 601 when the active PDF/X conformance mode does not allow an uncalibrated DeviceRGB fill color.