The SEDRIS Data Representation Model
APPENDIX A - Classes HSV Colour |
---|
An instance of this DRM class specifies the actual Hue, Saturation, and Value data values for a colour defined within the HSV colour model.
A <HSV Colour> for pure black (Value = 0.0, Hue and Saturation values don't matter)
A <HSV Colour> for a bright red (Hue = 0.0, Saturation = 1.0, Value = 1.0)
This is very easy to do. The mathematical transformation is a bit
involved, but the SEDRIS API will do it for you, if you ask nicely.
After opening the transmittal, before you retrieve any
<Colour Data>,
(or, if you want, even before you open the transmittal)
call the SE_SetColourModel() function, like so:
"SE_SetColourModel(
SE_CLR_MDL_RGB);",
and for the rest of the execution of that program, you will
never get back a <HSV Colour> instance.
Each <Colour Data>
instance you retrieve from that point on will be
an <RGB Colour> instance.
See Part 4, Volume 8 Images and Colour Models Technical Guide of the SEDRIS Documentation Set for further information.
SE_HSV_Data | hsv_data; | (notes) |
---|
The hsv_data field specifies the HSV colour coordinate.
|