Class Name: RGB Color
Definition
Contains the actual Red, Green, and Blue data values for a
color defined within the Red Green Blue color model. These
values are expected to be values between 0.0 and 1.0,
inclusive. RGB colors are commonly used by color monitors.
The RGB color model is probably the best known color 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:
Example
- A RGB color for pure black. (Red = 0.0, Green = 0.0, Blue = 0.0)
- A RGB color for bright red. (Red = 1.0, Green = 0.0, Blue = 0.0)
FAQs
- I don't use the RGB color model. How can I get the color values back
in the model I use?
- If you use the CMY, CMYK, or HSV color models, then you're in luck.
If you tell it to, before you retrieve any color objects, the SEDRIS
Level 0 Read API will change all of the color objects into
RGB Color, CMY Color,
or HSV Color objects. And if you need CMYK, ask
for CMY, then use the utility functions provided in the SEDRIS Conversions
API to convert from CMY to CMYK. To tell the SEDRIS Level 0 Read API which
color model you want, after opening the transmittal, before you
retrieve any Color Data objects, (or even
before you open the transmittal), call the SE_SetColorModel() function,
passing in the color model you want to use.
Also, if you ever have color data you want to convert from one color
model to another (such as from CMY to RGB), standard utility functions
are provided in the SEDRIS Conversions API to carry out these data
conversions.
Constraints
None.
Composed of (two-way)
Component of (one-way)(inherited)
Prev: Quad Tree Related Geometry.
Next: RGB Color Control Link.
Up:Index.