24 #ifndef __IColorConverter__ 25 #define __IColorConverter__ 27 #include "IPMUnknown.h" 28 #include "ICMSSettings.h" 29 #include "ICMSProfile.h" 30 #include "IGraphicsPort.h" 32 #include "ColorMgmtID.h" 33 #include "BravoForwardDecl.h" 45 uint16 bitsPerComponent;
53 enum { kDefaultIID = IID_ICOLORCONVERTER };
55 virtual bool8 Begin(
ICMSProfile *srcProfile,
ICMSProfile *destProfile, ICMSSettings::renderingIntent intent) = 0;
59 virtual bool8 Begin(AGMColorSpace* srcColorSpace,
ICMSProfile *destProfile, ICMSSettings::renderingIntent intent) = 0;
63 virtual bool8 Begin(AGMColorSpace* srcColorSpace, AGMColorSpace *destColorSpace, ICMSSettings::renderingIntent intent) = 0;
67 virtual bool8 Begin(
IDocument *doc, ICMSProfile::profileCategory categorySrc, ICMSProfile::profileCategory categoryDest, ICMSSettings::renderingIntent intent) = 0;
71 virtual bool8 Begin(int32 cstypeSrc, int32 cstypeDst) = 0;
75 virtual bool8 End() = 0;
83 virtual bool8 Convert(
float *compsIn,
float *compsOut) = 0;
93 virtual int32 GetNumSourceComponents()
const = 0;
94 virtual int32 GetNumDestinationComponents()
const = 0;
110 AGMColorProfile* defRGBProfile,
111 AGMColorProfile* defCMYKProfile,
112 bool32 idealizedBlack,