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 be in the range [0.0, 1.0].
NOTE The RGB colour model is often visualized as a cube where the red, green, and blue values define coordinates within the cube.
An <RGB Colour> instance representing pure black has an rgb_data field with a value of red = 0.0, green = 0.0, blue = 0.0.
An <RGB Colour> instance representing red has an rgb_data field with a value of red = 1.0, green = 0.0, blue = 0.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_RGB_Data | rgb_data; | 1 |
---|
The rgb_data field specifies the RGB colour coordinate. For an <RGB Colour> instance with an <RGB Colour Control Link> component X, the value of the rgb_data field is obtained from X.
|