Valid
Color management
Description
Reports whether the TPDFICCComponentTransform instance completed construction and is usable for conversions. It is true only after the conversion library loaded, all required CMM entry points were bound, the context was created, both profiles opened, the component counts resolved and the transform object was created.
When it is false the instance cannot convert anything and LastError carries the reason, such as an unavailable library, a missing CMM function, a profile that is invalid or exceeds the 16 MiB byte budget, a colour space outside GRAY, RGB, CMYK, CMY, Lab, XYZ and nCLR, or a rendering intent outside 0 through 3.
Syntax
Delphi
property Valid: Boolean read FValid;Return values
| True | Construction succeeded and Transform may be called |
|---|---|
| False | Construction failed; LastError holds the English diagnostic and InputComponents and OutputComponents read 0 |
Remarks
Validity is decided at construction and never changes afterwards; a later per-call failure is reported through the Transform result and LastError, not by clearing this property.