THPDFPage.SetStrokeColor Method
Writes the stroking color components for subsequent painting in the currently selected color space
Declaration
procedure SetStrokeColor(const Components: array of Extended);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Components | Finite numeric components in the order and range required by the selected color space |
Return value
This member does not return a value
Usage notes
- Select the color space with SetStrokeColorSpace 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 color operator is written
- Register named color 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