THPDFPage.SetFillPatternRGB Method
Sets fill pattern rgb state for subsequent graphics and color management output. The setting affects later page drawing, page dictionary entries, conformance metadata, or text emission rather than already-written content
Declaration
procedure SetFillPatternRGB(const PatternName: AnsiString; R, G, B: Single);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PatternName | PDF resource name, packet name, profile name, or caller-defined identifier |
R | Color component or color value used by the painting or resource operation |
G | Color component or color value used by the painting or resource operation |
B | Color component or color value used by the painting or resource operation |
Return value
This member does not return a value
Usage notes
- R, G and B are finite tint components from zero through one; small nonzero values retain fractional precision beyond two decimal places
- After the existing PDF version check succeeds, non-finite components raise EConvertError before registering pattern resources or changing the page color space
- Use this API in the graphics and color management workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- 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