THPDFPage.SetFillColor Method
Writes the nonstroking colour components for subsequent painting in the currently selected colour space
Declaration
procedure SetFillColor(const Components: array of Extended);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Components | Finite numeric components in the order and range required by the selected colour space |
Return value
Returns no value
Usage notes
- Select the colour space with SetFillColorSpace before supplying its components
- Fractional components retain precision beyond two decimal places, including small linear-light values; output uses a decimal point and no exponent notation regardless of the process locale
- Components are not clamped to zero through one because spaces such as Lab also use negative or larger values; callers must supply the correct count and range
- An empty array writes nothing; a non-finite component raises EConvertError before any part of the colour operator is written
- Register named colour resources before using them from page-level painting commands
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak