DIRECTORY ImagerColorPrivate, ImagerColorFns, Rope, ImagerColor; GGColorOps: CEDAR DEFINITIONS ~ BEGIN ColorType: TYPE = {constantOp, constantSpecial, sampled, sampledBlack}; OperatorType: TYPE = {grayLinear, grayDensity, grayVisual, map, buildMap, rgbLinear, colorMap, cmyk, yesLinear, xeroxRgbLinear, cielab, highlightLinear, process, highlight, other}; ColorOperator: TYPE = ImagerColor.ColorOperator; ROPE: TYPE = Rope.ROPE; CMYK: TYPE = ImagerColorFns.CMYK; ColorOperatorClassRep: PUBLIC TYPE ~ ImagerColorPrivate.ColorOperatorClassRep; GetColorType: PROC [color: ImagerColor.Color] RETURNS [type: ColorType, op: ColorOperator]; GetOperatorType: PROC [op: ColorOperator] RETURNS [OperatorType]; CMYKFromColor: PROC [color: ImagerColor.OpConstantColor] RETURNS [cmyk: CMYK]; ExtractCMYK: PROC [color: ImagerColor.ConstantColor] RETURNS [c,m,y,k: REAL]; ExtractIntensity: PROC [color: ImagerColor.ConstantColor] RETURNS [intensity: REAL]; END. όGGColorOps.mesa Implemented in GGParseImpl.mesa. Color operations that haven't become part of the Imager world yet. Bier, October 18, 1991 4:09 pm PDT Only works for the CMYK color model so check the type first Returns intensity, IN [0.0..1.0]. Κ)˜Icode™K™ ™BK™"—šΟk ˜ Kšœ6˜6—K˜Kšœ ˜šœ˜K˜Kšœ œ8˜GKšœœ’˜΄Kšœœ˜0Kšœœœ˜Kšœœœ˜!Kšœœœ,˜NK˜—KšΟn œœœ&˜[Kšžœœœ˜Ašž œœ&œœ˜NKšœœ$™;—Kšž œœ$œ œ˜Mšžœœ$œ œ˜TK™!K˜—Kšœ˜—…—Έέ