The SEDRIS Data Representation Model
APPENDIX A - Classes
RGB Colour
|
Class Name: RGB Colour
Subclasses
This DRM class is concrete and has no subclasses.
Definition
An instance of this DRM class contains 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.
Primary Page in DRM Diagram:
Secondary Pages in DRM Diagram:
This class appears on only one page of the DRM class diagram.
Example
- A RGB colour for pure black. (Red = 0.0, Green = 0.0, Blue = 0.0)
- A RGB colour for bright red. (Red = 1.0, Green = 0.0, Blue = 0.0)
FAQs
- As a consumer, I don't use the RGB colour model. How can I retrieve
the colour values in the model I use?
- If you use the CMY, CMYK, or HSV colour models, then you're 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.
Constraints
None.
Composed of (two-way)
Component of (two-way)(inherited)
Inherited Field Elements
This class has no inherited field elements.
Prev: Rendering Properties.
Next: RGB Colour Control Link.
Up:Index.
|
Last updated: October 1, 2002
|
Copyright © 2002 SEDRIS
|
|