THotPDF.RegisterICCProfile Method
Validuje a zaregistruje opakovane použiteľný profil ICC v2 alebo v4 ako zdroj farebného priestoru ICCBased
Deklarácia
function RegisterICCProfile(const ProfileFileName: AnsiString; NumComponents : Integer; const AlternateCS : AnsiString= 'DeviceRGB'): AnsiString; overload;
Unit
HPDFDoc
Parametre
| Name | Účel |
|---|---|
ProfileFileName | File |
NumComponents | Components |
AlternateCS | Alternate colour space |
AlternateCS | Matching DeviceGray, DeviceRGB, or DeviceCMYK fallback; an empty value derives it from the profile |
Návratová hodnota
Vracia opakovane použiteľný názov zdroja farebného priestoru, napríklad CS1
Poznámky k použitiu
- Volanie: preflight validation
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
NumComponents - Stabilné identifikátory
- Register named colour resources before using them from page-level painting commands
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