The SEDRIS Data Representation Model
APPENDIX A - Classes CMY Colour |
---|
An instance of this DRM class specifies the actual cyan, magenta, and yellow data values for a colour defined within the CMY colour model. These values shall be in the range [0.0, 1.0].
NOTE The CMY colour model is closely related to the RGB colour model. Cyan is the complement of red (cyan = 1.0 - red); magenta, of green (magenta = 1.0 - green); and yellow, of blue (yellow = 1.0 - blue)
A <CMY Colour> instance representing pure black has a cmy_data field with a value of cyan = 1.0, magenta = 1.0, yellow = 1.0.
A <CMY Colour> instance representing red has a cmy_data field with a value of cyan = 0.0, magenta = 1.0, yellow = 1.0.
The specific procedure to be followed depends on the colour model used by the consuming application.
If the data consumer uses a colour model directly supported by the DRM, the Level 0 API can be instructed to change all <Colour Data> instances to the desired colour model before any <Colour Data> instances are retrieved. Otherwise, the Level 0 API can be instructed to change all <Colour Data> instances to an appropriate colour model before any <Colour Data> instances are retrieved, and upon retrieval the consuming application can invoke the appropriate utility function provided in the DRM API to convert to the desired colour model.See P4V8 of the SEDRIS Documentation Set for further information.
SE_CMY_Data | cmy_data; | 1 |
---|
The cmy_data field specifies the CMY colour coordinate. For a <CMY Colour> instance with a <CMY Colour Control Link> component, the value of the cmy_data field is obtained from the control link.
|