SetImageColorspaceTransformImageColorspace

SetImageColorspace

SetImageColorspace() sets the colorspace member of the Image structure.

The format of the SetImageColorspace method is:

MagickBooleanType SetImageColorspace(Image *image,
  const ColorspaceType colorspace,ExceptiionInfo *exception)

A description of each parameter follows:

image
the image.
colorspace
the colorspace.
exception
return any errors or warnings in this structure.

TransformImageColorspace

TransformImageColorspace() transforms an image colorspace, changing the image data to reflect the new colorspace.

The format of the TransformImageColorspace method is:

MagickBooleanType TransformImageColorspace(Image *image,
  const ColorspaceType colorspace,ExceptionInfo *exception)

A description of each parameter follows:

image
the image.
colorspace
the colorspace.
exception
return any errors or warnings in this structure.