CMYKCompatibilityImpl.mesa
Copyright Ó 1992 by Xerox Corporation. All rights reserved.
Michael Plass, April 16, 1992 3:33 pm PDT
Support for the old Xerox/Research/CMYK color model operator.
DIRECTORY ImagerColorPrivate, ImagerColor, Real;
CMYKCompatibilityImpl: CEDAR PROGRAM
IMPORTS ImagerColorPrivate, ImagerColor, Real
~
BEGIN
researchCMYKLinear: ImagerColorPrivate.ColorOperatorClass ~ ImagerColorPrivate.NewColorOperatorClass[
name: "Xerox/Research/CMYK",
createColorOperator: CreateColorOperatorOldCMYK,
getCreateData: NIL,
getPixelEncoding: NIL,
apply: NIL,
dataEqual: NIL,
supportedOutputs: NIL
];
CreateColorOperatorOldCMYK: ImagerColorPrivate.ColorOperatorCreateProc ~ {
consistencyTest: INT ~ ImagerColorPrivate.SCheckSize[structure, 1];
maxIn: REAL ~ ImagerColorPrivate.SGetReal[structure, 0];
RETURN [ImagerColor.NewColorOperatorCMYK[Real.Round[maxIn]]]
};
END.