THotPDF.RegisterRadialGradient Method
Registers a reusable radial gradient resource for the graphics and color management workflow. Call it before page commands reference the resource name so color, pattern, font, image, or profile data is available in the PDF resource tree
Declaration
function RegisterRadialGradient(X0, Y0, R0, X1, Y1, R1: Single; const ColorStart: array of Extended; const ColorEnd: array of Extended): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
X0 | Input used by RegisterRadialGradient |
Y0 | Input used by RegisterRadialGradient |
R0 | Input used by RegisterRadialGradient |
X1 | Input used by RegisterRadialGradient |
Y1 | Input used by RegisterRadialGradient |
R1 | Input used by RegisterRadialGradient |
ColorStart | Color component or color value used by the painting or resource operation |
ColorEnd | Color component or color value used by the painting or resource operation |
Return value
Returns an AnsiString value
Usage notes
- 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