InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IColorConverter Class Referenceabstract
Inheritance diagram for IColorConverter:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ICOLORCONVERTER }
 

Public Member Functions

virtual bool8 Begin (ICMSProfile *srcProfile, ICMSProfile *destProfile, ICMSSettings::renderingIntent intent)=0
 
virtual bool8 Begin (AGMColorSpace *srcColorSpace, ICMSProfile *destProfile, ICMSSettings::renderingIntent intent)=0
 
virtual bool8 Begin (AGMColorSpace *srcColorSpace, AGMColorSpace *destColorSpace, ICMSSettings::renderingIntent intent)=0
 
virtual bool8 Begin (IDocument *doc, ICMSProfile::profileCategory categorySrc, ICMSProfile::profileCategory categoryDest, ICMSSettings::renderingIntent intent)=0
 
virtual bool8 Begin (int32 cstypeSrc, int32 cstypeDst)=0
 
virtual bool8 End ()=0
 
virtual bool8 Convert (ColorConverterData *dataIn, ColorConverterData *dataOut, int32 numPixels)=0
 
virtual bool8 Convert (float *compsIn, float *compsOut)=0
 
virtual bool8 Convert (IColorData *colorIn, IColorData *colorOut)=0
 
virtual int32 GetNumSourceComponents () const =0
 
virtual int32 GetNumDestinationComponents () const =0
 
virtual void SetColorConvertOptions (AGMColorProfile *defRGBProfile, AGMColorProfile *defCMYKProfile, bool32 idealizedBlack, bool32 oppBlending, bool32 fastXforms, IGraphicsPort::RenderingIntent defaultRI=IGraphicsPort::kRelative)=0
 
virtual void SetColorConvertOptions (IGraphicsPort *iPort)=0
 
virtual void SetColorConvertOptions (void *opts, IGraphicsPort::RenderingIntent defaultRI)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Member Function Documentation

virtual void IColorConverter::SetColorConvertOptions (AGMColorProfile * defRGBProfile,
AGMColorProfile * defCMYKProfile,
bool32 idealizedBlack,
bool32 oppBlending,
bool32 fastXforms,
IGraphicsPort::RenderingIntent defaultRI = IGraphicsPort::kRelative 
)
pure virtual

Provides color conversion options.

Parameters
defRGBProfileThe default rgb profile to use for uncalibrated rgb.
defCMYKProfileThe default cmyk profile to use for uncalibrated rgb.
idealizedBlackIf true, uses idealized black conversions from CMYK to RGB/Gray. If false, uses accurate black conversions.
oppBlendingIf true, uses XYZ-based blending for NChannel->process conversion. If false, blends in destination space.
fastXformsIf true, uses faster but less accurate xforms. If false, uses slower but more accurate xforms.
virtual void IColorConverter::SetColorConvertOptions (IGraphicsPortiPort)
pure virtual

Provides color conversion options (version 2). In this case the options will be copied directly from the current port's settings. This allows you to convert comparably to how the port would – although bear in mind that the color families identified in the Begin call will always take precedent over the port's configuration.

Parameters
iPort,:The port from which to pull color conversion options.
virtual void IColorConverter::SetColorConvertOptions (void * opts,
IGraphicsPort::RenderingIntent defaultRI 
)
pure virtual

Internal-only direct setting of all color convert options.

Parameters
optsA pointer to the options dictionary container.
defaultRIDefault rendering intent (default OPM is always kTrue).