MGD::TRANSFORM Class Reference

#include <mi32/mg2cms.h>

List of all members.

Public Member Functions

 TRANSFORM (const TRANSFORM &rhs)
 TRANSFORM (const PROFILE &InputProfile, COLORSPACE InputColorSpace, const PROFILE &OutputProfile, COLORSPACE OutputColorSpace, PROFILE::INTENT RenderingIntent=PROFILE::INTENT_Perceptual, UINT32 flags=0)
 TRANSFORM ()
 ~TRANSFORM ()
ERRVALUE Create (const PROFILE &InputProfile, COLORSPACE InputColorSpace, const PROFILEPARMS_PRINTER &ProofParms, const PROFILE &OutputProfile, COLORSPACE OutputColorSpace, PROFILE::INTENT RenderingIntent=PROFILE::INTENT_Perceptual, UINT32 flags=0)
ERRVALUE Create (const PROFILE &InputProfile, COLORSPACE InputColorSpace, const PROFILE &OutputProfile, COLORSPACE OutputColorSpace, PROFILE::INTENT RenderingIntent=PROFILE::INTENT_Perceptual, UINT32 flags=0)
void DoTransform (const COLOR &src, COLOR &dest) const
void DoTransform (const void *src, void *dest, int size) const
void Free ()
const PROFILEGetInputProfile () const
COLORSPACE GetOutputColorSpace () const
const PROFILEGetOutputProfile () const
bool IsEmpty () const
TRANSFORMoperator= (const TRANSFORM &rhs)

Static Public Member Functions

static void SetOutOfGamutAlarmColor (const COLOR &color)

Constructor & Destructor Documentation

MGD::TRANSFORM::TRANSFORM (  )  [inline]

Default constructor Empty transform until Open or something else is called.

MGD::TRANSFORM::TRANSFORM ( const PROFILE InputProfile,
COLORSPACE  InputColorSpace,
const PROFILE OutputProfile,
COLORSPACE  OutputColorSpace,
PROFILE::INTENT  RenderingIntent = PROFILE::INTENT_Perceptual,
UINT32  flags = 0 
)

Shortcut construct simple transform.

MGD::TRANSFORM::TRANSFORM ( const TRANSFORM rhs  ) 

cmsCreateProofingTransform ( input, inputformat, output, outputformat proofprofile, intent, proofingintent = INTENT_ABSOLUTE_COLORIMETRIC dwFlags = cmsFLAGS_SOFTPROOFING cmsFLAGS_GAMUTCHECK cmsFLAGS_SOFTPROOFING

cmsCreateMultiprofileTransform ( profile_array, num_profiles, inputformat, outputformat, intent, flags ) Copy constructor Copy is "cheap" as the actual data is refcounted

MGD::TRANSFORM::~TRANSFORM (  ) 

Destructor (note: not virtual.

No derived classes)


Member Function Documentation

ERRVALUE MGD::TRANSFORM::Create ( const PROFILE InputProfile,
COLORSPACE  InputColorSpace,
const PROFILEPARMS_PRINTER ProofParms,
const PROFILE OutputProfile,
COLORSPACE  OutputColorSpace,
PROFILE::INTENT  RenderingIntent = PROFILE::INTENT_Perceptual,
UINT32  flags = 0 
)
ERRVALUE MGD::TRANSFORM::Create ( const PROFILE InputProfile,
COLORSPACE  InputColorSpace,
const PROFILE OutputProfile,
COLORSPACE  OutputColorSpace,
PROFILE::INTENT  RenderingIntent = PROFILE::INTENT_Perceptual,
UINT32  flags = 0 
)
void MGD::TRANSFORM::DoTransform ( const COLOR src,
COLOR dest 
) const
void MGD::TRANSFORM::DoTransform ( const void *  src,
void *  dest,
int  size 
) const

Transform an input buffer to an output buffer.

The buffers are expected to match InputFormat and OutputFormat passed to CreateTransform() or CreateProofingTransform() It is safe for src to == dest as long as they're both the same number of bytes per pixel.

Parameters:
size Size in pixels
void MGD::TRANSFORM::Free (  ) 
const PROFILE& MGD::TRANSFORM::GetInputProfile (  )  const

Returns a const reference to the input profile used to create this transform.

COLORSPACE MGD::TRANSFORM::GetOutputColorSpace (  )  const [inline]
const PROFILE& MGD::TRANSFORM::GetOutputProfile (  )  const

Returns a const reference to the output profile used to create this transform.

bool MGD::TRANSFORM::IsEmpty (  )  const [inline]

Returns true if the transform does nothing.

NOTE: An empty transform will _really_ do nothing. DoTransform won't even copy the source to the destination because it doesn't know how many bytes per pixel there are

TRANSFORM& MGD::TRANSFORM::operator= ( const TRANSFORM rhs  ) 

Assignment operator.

Assignment is "cheap" as the actual data is refcounted

static void MGD::TRANSFORM::SetOutOfGamutAlarmColor ( const COLOR color  )  [static]

Set the color to use if OutOfGamutAlarm is enabled.

Due to the way it's implemented in the lcms library, this is a global setting, not per-transform.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:35:22 2012 for TNTsdk 2012 by  doxygen 1.6.1