|
THotPDF.RegisterLabColorSpace
|
Вгору |
|
Реєструє PDF 1.3 CIELab color space (ISO 32000-1 8.6.5.3) під auto-generated resource name (Lab1, Lab2, ...) Використовуйте returned name з THPDFPage.SetFillColorSpace / SetStrokeColorSpace, потім SetFillColor / SetStrokeColor із трьома components L*a*b*
Delphi syntax: function RegisterLabColorSpace(WhitePointX, WhitePointY, WhitePointZ: Single; RangeAMin, RangeAMax, RangeBMin, RangeBMax: Single): AnsiString;
C++ syntax: AnsiString RegisterLabColorSpace(float WhitePointX, float WhitePointY, float WhitePointZ, float RangeAMin, float RangeAMax, float RangeBMin, float RangeBMax);
Опис CIELab color space описує colors незалежно від display або printing device: L* виражає lightness у [0..100], a* - green/red axis, b* - blue/yellow axis (typically [-128..127]) Conforming PDF viewers convert L*a*b* to device color using configured WhitePoint illuminant Common illuminants:
D50 - ICC print standard. WhitePoint = [0.9505, 1.0, 1.089]. D65 - sRGB / display standard. WhitePoint = [0.95047, 1.0, 1.08883].
WhitePoint Y must equal 1.0 per spec table 64; X and Z must be positive. Passing all four Range parameters as zero falls back to the spec's implicit default
Return value: auto-generated resource name (Lab1, Lab2, ...) Повертає empty string, коли StrictVersionLock on і active Version нижча за PDF 1.3; інакше version auto-bumps to 1.3
Code Example
See Also Version, Compression, PDF Filter Support
|