THotPDF.RegisterICCProfile Method
Method summary: THotPDF.RegisterICCProfile MethodICCBased colour-space resource
Declaration
function RegisterICCProfile(const ProfileFileName: AnsiString; NumComponents : Integer; const AlternateCS : AnsiString= 'DeviceRGB'): AnsiString; overload;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
ProfileFileName | File |
NumComponents | Components |
AlternateCS | Alternate colour space |
AlternateCS | Matching DeviceGray, DeviceRGB, or DeviceCMYK fallback; an empty value derives it from the profile |
Return value
Returns a value: AnsiStringCS1
Usage notes
- Call: THotPDF.RegisterICCProfile
acspsignature, declared size, version, PCS, rendering intent, tag table, tag bounds, and component count are validated before an indirect object is created - The overloads without
NumComponentsinfer one, three, or four components from Grey, RGB, or CMYK profile data - Stable
- Colour
ICCBasedvector colours and raw image samples to sRGB through the embedded ICC pipeline, honours all PDFrirendering intents, applies configured black-point compensation, and uses/Alternateonly when conversion is unavailable - Use the returned name with
THPDFPage.SetFillColorSpace,SetStrokeColorSpace,SetTransparencyGroupICC, orTHotPDF.RegisterDefaultColorSpace
Related APIs
- THotPDF
- THPDFPage
- Contents
- Contents