The SEDRIS Data Representation Model
APPENDIX A - Classes RGB Colour |
---|
An instance of this DRM class specifies the actual Red, Green, and Blue data values for a colour defined within the Red Green Blue colour model. These values shall between 0.0 and 1.0, inclusive.
The RGB colour model is probably the best known colour model, and is often visualized as a cube, where the Red, Green, and Blue values define coordinates within the cube.
A RGB colour for pure black (rgb_data. red = 0.0, rgb_data. green = 0.0, rgb_data. blue = 0.0).
A RGB colour for bright red (rgb_data. red = 1.0, rgb_data. green = 0.0, rgb_data. blue = 0.0).
Data consumers who use the CMY, CMYK, or HSV colour models, are in luck. If you tell it to, before you retrieve any colour objects, the SEDRIS Level 0 Read API will change all of the colour objects into <RGB Colour>, <CMY Colour>, or <HSV Colour> instances. And if you need CMYK, ask for CMY, then use the utility functions provided in the DRM API to convert from CMY to CMYK. To tell the SEDRIS Level 0 Read API which colour model you want, after opening the transmittal, before you retrieve any <Colour Data> instances, (or even before you open the transmittal), call the SE_SetColourModel() function, passing in the colour model you want to use.
Also, if you ever have colour data you want to convert from one colour model to another (such as from CMY to RGB), standard utility functions are provided in the DRM API to carry out these data conversions.
SE_RGB_Data | rgb_data; | (notes) |
---|
The rgb_data field specifies the RGB colour coordinate.
|