SetImageColorspace • SetImageGray • SetImageMonochrome • TransformImageColorspace
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:
SetImageGray() returns MagickTrue if all the pixels in the image have the same red, green, and blue intensities and changes the type of the image to bi-level or grayscale.
The format of the SetImageGray method is:
MagickBooleanType SetImageGray(const Image *image, ExceptionInfo *exception)
A description of each parameter follows:
SetImageMonochrome() returns MagickTrue if all the pixels in the image have the same red, green, and blue intensities and the intensity is either 0 or QuantumRange and changes the type of the image to bi-level.
The format of the SetImageMonochrome method is:
MagickBooleanType SetImageMonochrome(Image *image, ExceptionInfo *exception)
A description of each parameter follows:
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: