THPDFPage.SetFillPatternGray Method
Sets fill pattern gray 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 SetFillPatternGray(PatternName: AnsiString; Gray: byte);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PatternName | PDF resource name, packet name, profile name, or caller-defined identifier |
Gray | Input used by SetFillPatternGray |
Return value
This member does not return a value
Usage notes
- Gray is a byte from 0 through 255 and is normalized by division by 255; the resulting pattern tint retains fractional precision beyond two decimal places
- The named pattern and its DeviceGray tint color space are registered on the current page before painting
- 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
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak