Class Name: CMY Color

Superclass - Color Data

Definition

Contains the actual cyan, magenta, and yellow data values for a color defined within the Cyan Magenta Yellow color model. These values are expected to be values between 0.0 and 1.0, inclusive. CMY (and CMYK) colors are commonly used by hardcopy devices, such as printers. The CMY color model is closely related to the RGB color model. Cyan is the complement of Red (Cyan = 1.0 - Red); Magenta, of Green (Magenta = 1.0 - Green); and Yellow, of Blue (Yellow = 1.0 - Blue)

Primary Page in DRM Diagram:

Example

  1. A CMY color for pure black (Cyan=1.0, Magenta=1.0, yellow = 1.0)
  2. A CMY color for bright red (Cyan=0.0, Magenta=1.0, yellow = 1.0)

FAQs

I use RGB, not CMY. How can I get RGB from a CMY transmittal?
This is very easy to do. After opening the transmittal, before you retrieve any Color Data, (or even before you open the transmittal), call the SE_SetColorModel() function, like so: "SE_SetColorModel() ( SE_RGB_MODEL);" and for the rest of the execution of that program, you will never get back a CMY Color object. Each Color Data object you get back from there on out will be an RGB Color object.

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 Level 1 Read API to carry out these data conversions.

I use CMYK, not CMY. Where can I get CMYK?
CMYK can be simply derived from CMY. You can do the derivation yourself, or you can call the Color Conversion Function in the SEDRIS Level 1 Read API that converts from CMY to CMYK. The derivation is really quite simple. Given a CMY color, e.g. one with data values of (Cyan = 0.7, Magenta = 0.5, Yellow = 0.2), find the minimum value. In this case Yellow is the minimum value (with a value of 0.2). To convert any CMY color to a CMYK color, set the Black value equal to the minimum CMY value, and subtract the minimum value from each CMY value. So a CMY color of (Cyan = 0.7, Magenta = 0.5, Yellow = 0.2) is converted CMYK values (Cyan = 0.5, Magenta = 0.3, Yellow = 0.0, Black = 0.2)

Constraints

None.

Composed of (two-way)

Component of (one-way)(inherited)

Field Elements

SE_CMY_DATA cmy_data;

Prev: Browse Graphic. Next: CMY Color Control Link. Up:Index.