[ImageMagick] [sponsor]

GetImageFromMagickWand

GetImageFromMagickWand() returns the current image from the magick wand.

The format of the GetImageFromMagickWand method is:

  Image *GetImageFromMagickWand(const MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickAdaptiveBlurImage

MagickAdaptiveBlurImage() adaptively blurs the image by blurring less intensely near image edges and more intensely far from edges. We blur the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and MagickAdaptiveBlurImage() selects a suitable radius for you.

The format of the MagickAdaptiveBlurImage method is:

  MagickBooleanType MagickAdaptiveBlurImage(MagickWand *wand,
    const double radius,const double sigma)
  MagickBooleanType MagickAdaptiveBlurImageChannel(MagickWand *wand,
    const ChannelType channel,const double radius,const double sigma)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

radius

    the radius of the Gaussian, in pixels, not counting the center pixel.

sigma

    the standard deviation of the Gaussian, in pixels.

MagickAdaptiveResizeImage

MagickAdaptiveResizeImage() adaptively resize image with data dependent triangulation.

MagickBooleanType MagickAdaptiveResizeImage(MagickWand *wand, const unsigned long columns,const unsigned long rows)

A description of each parameter follows:

wand

    the magick wand.

columns

    the number of columns in the scaled image.

rows

    the number of rows in the scaled image.

MagickAdaptiveSharpenImage

MagickAdaptiveSharpenImage() adaptively sharpens the image by sharpening more intensely near image edges and less intensely far from edges. We sharpen the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and MagickAdaptiveSharpenImage() selects a suitable radius for you.

The format of the MagickAdaptiveSharpenImage method is:

  MagickBooleanType MagickAdaptiveSharpenImage(MagickWand *wand,
    const double radius,const double sigma)
  MagickBooleanType MagickAdaptiveSharpenImageChannel(MagickWand *wand,
    const ChannelType channel,const double radius,const double sigma)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

radius

    the radius of the Gaussian, in pixels, not counting the center pixel.

sigma

    the standard deviation of the Gaussian, in pixels.

MagickAdaptiveThresholdImage

MagickAdaptiveThresholdImage() selects an individual threshold for each pixel based on the range of intensity values in its local neighborhood. This allows for thresholding of an image whose global intensity histogram doesn't contain distinctive peaks.

The format of the AdaptiveThresholdImage method is:

  MagickBooleanType MagickAdaptiveThresholdImage(MagickWand *wand,
    const unsigned long width,const unsigned long height,const long offset)

A description of each parameter follows:

wand

    the magick wand.

width

    the width of the local neighborhood.

height

    the height of the local neighborhood.

offset

    the mean offset.

MagickAddImage

MagickAddImage() adds the specified images at the current image location.

The format of the MagickAddImage method is:

  MagickBooleanType MagickAddImage(MagickWand *wand,
    const MagickWand *add_wand)

A description of each parameter follows:

wand

    the magick wand.

add_wand

    A wand that contains images to add at the current image location.

MagickAddNoiseImage

MagickAddNoiseImage() adds random noise to the image.

The format of the MagickAddNoiseImage method is:

  MagickBooleanType MagickAddNoiseImage(MagickWand *wand,
    const NoiseType noise_type)
  MagickBooleanType MagickAddNoiseImageChannel(MagickWand *wand,
    const ChannelType channel,const NoiseType noise_type)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

noise_type

    The type of noise: Uniform, Gaussian, Multiplicative, Impulse, Laplacian, or Poisson.

MagickAffineTransformImage

MagickAffineTransformImage() transforms an image as dictated by the affine matrix of the drawing wand.

The format of the MagickAffineTransformImage method is:

  MagickBooleanType MagickAffineTransformImage(MagickWand *wand,
    const DrawingWand *drawing_wand)

A description of each parameter follows:

wand

    the magick wand.

drawing_wand

    the draw wand.

MagickAnnotateImage

MagickAnnotateImage() annotates an image with text.

The format of the MagickAnnotateImage method is:

  MagickBooleanType MagickAnnotateImage(MagickWand *wand,
    const DrawingWand *drawing_wand,const double x,const double y,
    const double angle,const char *text)

A description of each parameter follows:

wand

    the magick wand.

drawing_wand

    the draw wand.

x

    x ordinate to left of text

y

    y ordinate to text baseline

angle

    rotate text relative to this angle.

text

    text to draw

MagickAnimateImages

MagickAnimateImages() animates an image or image sequence.

The format of the MagickAnimateImages method is:

  MagickBooleanType MagickAnimateImages(MagickWand *wand,
    const char *server_name)

A description of each parameter follows:

wand

    the magick wand.

server_name

    the X server name.

MagickAppendImages

MagickAppendImages() append a set of images.

The format of the MagickAppendImages method is:

  MagickWand *MagickAppendImages(MagickWand *wand,
    const MagickBooleanType stack)

A description of each parameter follows:

wand

    the magick wand.

stack

    By default, images are stacked left-to-right. Set stack to MagickTrue to stack them top-to-bottom.

MagickAverageImages

MagickAverageImages() average a set of images.

The format of the MagickAverageImages method is:

  MagickWand *MagickAverageImages(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickBlackThresholdImage

MagickBlackThresholdImage() is like MagickThresholdImage() but forces all pixels below the threshold into black while leaving all pixels above the threshold unchanged.

The format of the MagickBlackThresholdImage method is:

  MagickBooleanType MagickBlackThresholdImage(MagickWand *wand,
    const PixelWand *threshold)

A description of each parameter follows:

wand

    the magick wand.

threshold

    the pixel wand.

MagickBlurImage

MagickBlurImage() blurs an image. We convolve the image with a gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and BlurImage() selects a suitable radius for you.

The format of the MagickBlurImage method is:

  MagickBooleanType MagickBlurImage(MagickWand *wand,const double radius,
    const double sigma)
  MagickBooleanType MagickBlurImageChannel(MagickWand *wand,
    const ChannelType channel,const double radius,const double sigma)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

radius

    the radius of the , in pixels, not counting the center pixel.

sigma

    the standard deviation of the , in pixels.

MagickBorderImage

MagickBorderImage() surrounds the image with a border of the color defined by the bordercolor pixel wand.

The format of the MagickBorderImage method is:

  MagickBooleanType MagickBorderImage(MagickWand *wand,
    const PixelWand *bordercolor,const unsigned long width,
    const unsigned long height)

A description of each parameter follows:

wand

    the magick wand.

bordercolor

    the border color pixel wand.

width

    the border width.

height

    the border height.

MagickCharcoalImage

MagickCharcoalImage() simulates a charcoal drawing.

The format of the MagickCharcoalImage method is:

  MagickBooleanType MagickCharcoalImage(MagickWand *wand,
    const double radius,const double sigma)

A description of each parameter follows:

wand

    the magick wand.

radius

    the radius of the Gaussian, in pixels, not counting the center pixel.

sigma

    the standard deviation of the Gaussian, in pixels.

MagickChopImage

MagickChopImage() removes a region of an image and collapses the image to occupy the removed portion

The format of the MagickChopImage method is:

  MagickBooleanType MagickChopImage(MagickWand *wand,
    const unsigned long width,const unsigned long height,const long x,
    const long y)

A description of each parameter follows:

wand

    the magick wand.

width

    the region width.

height

    the region height.

x

    the region x offset.

y

    the region y offset.

MagickClipImage

MagickClipImage() clips along the first path from the 8BIM profile, if present.

The format of the MagickClipImage method is:

  MagickBooleanType MagickClipImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickClipImagePath

MagickClipImagePath() clips along the named paths from the 8BIM profile, if present. Later operations take effect inside the path. Id may be a number if preceded with #, to work on a numbered path, e.g., "#1" to use the first path.

The format of the MagickClipImagePath method is:

  MagickBooleanType MagickClipImagePath(MagickWand *wand,
    const char *pathname,const MagickBooleanType inside)

A description of each parameter follows:

wand

    the magick wand.

pathname

    name of clipping path resource. If name is preceded by #, use clipping path numbered by name.

inside

    if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.

MagickClutImage

MagickClutImage() replaces colors in the image from a color lookup table.

The format of the MagickClutImage method is:

  MagickBooleanType MagickClutImage(MagickWand *wand,
    const MagickWand *clut_wand)
  MagickBooleanType MagickClutImageChannel(MagickWand *wand,
    const ChannelType channel,const MagickWand *clut_wand)

A description of each parameter follows:

wand

    the magick wand.

clut_image

    the clut image.

MagickCoalesceImages

MagickCoalesceImages() composites a set of images while respecting any page offsets and disposal methods. GIF, MIFF, and MNG animation sequences typically start with an image background and each subsequent image varies in size and offset. MagickCoalesceImages() returns a new sequence where each image in the sequence is the same size as the first and composited with the next image in the sequence.

The format of the MagickCoalesceImages method is:

  MagickWand *MagickCoalesceImages(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickColorizeImage

MagickColorizeImage() blends the fill color with each pixel in the image.

The format of the MagickColorizeImage method is:

  MagickBooleanType MagickColorizeImage(MagickWand *wand,
    const PixelWand *colorize,const PixelWand *opacity)

A description of each parameter follows:

wand

    the magick wand.

colorize

    the colorize pixel wand.

opacity

    the opacity pixel wand.

MagickCombineImages

MagickCombineImages() combines one or more images into a single image. The grayscale value of the pixels of each image in the sequence is assigned in order to the specified hannels of the combined image. The typical ordering would be image 1 => Red, 2 => Green, 3 => Blue, etc.

The format of the MagickCombineImages method is:

  MagickWand *MagickCombineImages(MagickWand *wand,
    const ChannelType channel)

A description of each parameter follows:

wand

    the magick wand.

channel

    the channel.

MagickCommentImage

MagickCommentImage() adds a comment to your image.

The format of the MagickCommentImage method is:

  MagickBooleanType MagickCommentImage(MagickWand *wand,
    const char *comment)

A description of each parameter follows:

wand

    the magick wand.

comment

    the image comment.

MagickCompareImageChannels

MagickCompareImageChannels() compares one or more image channels of an image to a reconstructed image and returns the difference image.

The format of the MagickCompareImageChannels method is:

  MagickWand *MagickCompareImageChannels(MagickWand *wand,
    const MagickWand *reference,const ChannelType channel,
    const MetricType metric,double *distortion)

A description of each parameter follows:

wand

    the magick wand.

reference

    the reference wand.

channel

    the channel.

metric

    the metric.

distortion

    the computed distortion between the images.

MagickCompareImageLayers

MagickCompareImageLayers() compares each image with the next in a sequence and returns the maximum bounding region of any pixel differences it discovers.

The format of the MagickCompareImageLayers method is:

  MagickWand *MagickCompareImageLayers(MagickWand *wand,
    const ImageLayerMethod method)

A description of each parameter follows:

wand

    the magick wand.

method

    the compare method.

MagickCompareImage

MagickCompareImage() compares an image to a reconstructed image and returns the specified difference image.

The format of the MagickCompareImages method is:

  MagickWand *MagickCompareImages(MagickWand *wand,
    const MagickWand *reference,const MetricType metric,
    double *distortion)

A description of each parameter follows:

wand

    the magick wand.

reference

    the reference wand.

metric

    the metric.

distortion

    the computed distortion between the images.

MagickCompositeImage

MagickCompositeImage() composite one image onto another at the specified offset.

The format of the MagickCompositeImage method is:

  MagickBooleanType MagickCompositeImage(MagickWand *wand,
    const MagickWand *composite_wand,const CompositeOperator compose,
    const long x,const long y)
  MagickBooleanType MagickCompositeImageChannel(MagickWand *wand,
    const ChannelType channel,const MagickWand *composite_wand,
    const CompositeOperator compose,const long x,const long y)

A description of each parameter follows:

wand

    the magick wand.

composite_image

    the composite image.

compose

    This operator affects how the composite is applied to the image. The default is Over. Choose from these operators:

        OverCompositeOp       InCompositeOp         OutCompositeOp
        AtopCompositeOp       XorCompositeOp        PlusCompositeOp
        MinusCompositeOp      AddCompositeOp        SubtractCompositeOp
        DifferenceCompositeOp BumpmapCompositeOp    CopyCompositeOp
        DisplaceCompositeOp
    
    x

      the column offset of the composited image.

    y

      the row offset of the composited image.

    MagickContrastImage() enhances the intensity differences between the lighter and darker elements of the image. Set sharpen to a value other than 0 to increase the image contrast otherwise the contrast is reduced.

The format of the MagickContrastImage method is:

  MagickBooleanType MagickContrastImage(MagickWand *wand,
    const MagickBooleanType sharpen)

A description of each parameter follows:

wand

    the magick wand.

sharpen

    Increase or decrease image contrast.

MagickContrastStretchImage

MagickContrastStretchImage() enhances the contrast of a color image by adjusting the pixels color to span the entire range of colors available. You can also reduce the influence of a particular channel with a gamma value of 0.

The format of the MagickContrastStretchImage method is:

  MagickBooleanType MagickContrastStretchImage(MagickWand *wand,
    const double black_point,const double white_point)
  MagickBooleanType MagickContrastStretchImageChannel(MagickWand *wand,
    const ChannelType channel,const double black_point,
    const double white_point)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

black_point

    the black point.

white_point

    the white point.

MagickConvolveImage

MagickConvolveImage() applies a custom convolution kernel to the image.

The format of the MagickConvolveImage method is:

  MagickBooleanType MagickConvolveImage(MagickWand *wand,
    const unsigned long order,const double *kernel)
  MagickBooleanType MagickConvolveImageChannel(MagickWand *wand,
    const ChannelType channel,const unsigned long order,
    const double *kernel)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

order

    the number of columns and rows in the filter kernel.

kernel

    An array of doubles representing the convolution kernel.

MagickCropImage

MagickCropImage() extracts a region of the image.

The format of the MagickCropImage method is:

  MagickBooleanType MagickCropImage(MagickWand *wand,
    const unsigned long width,const unsigned long height,const long x,
    const long y)

A description of each parameter follows:

wand

    the magick wand.

width

    the region width.

height

    the region height.

x

    the region x-offset.

y

    the region y-offset.

MagickCycleColormapImage

MagickCycleColormapImage() displaces an image's colormap by a given number of positions. If you cycle the colormap a number of times you can produce a psychodelic effect.

The format of the MagickCycleColormapImage method is:

  MagickBooleanType MagickCycleColormapImage(MagickWand *wand,
    const long displace)

A description of each parameter follows:

wand

    the magick wand.

pixel_wand

    the pixel wand.

MagickConstituteImage

MagickConstituteImage() adds an image to the wand comprised of the pixel data you supply. The pixel data must be in scanline order top-to-bottom. The data can be char, short int, int, float, or double. Float and double require the pixels to be normalized [0..1], otherwise [0..Max], where Max is the maximum value the type can accomodate (e.g. 255 for char). For example, to create a 640x480 image from unsigned red-green-blue character data, use

MagickConstituteImage(wand,640,640,"RGB",CharPixel,pixels);

The format of the MagickConstituteImage method is:

  MagickBooleanType MagickConstituteImage(MagickWand *wand,
    const unsigned long columns,const unsigned long rows,const char *map,
    const StorageType storage,void *pixels)

A description of each parameter follows:

wand

    the magick wand.

columns

    width in pixels of the image.

rows

    height in pixels of the image.

map

    This string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent), O = opacity (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad.

storage

    Define the data type of the pixels. Float and double types are expected to be normalized [0..1] otherwise [0..QuantumRange]. Choose from these types: CharPixel, DoublePixel, FloatPixel, IntegerPixel, LongPixel, QuantumPixel, or ShortPixel.

pixels

    This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type.

MagickDecipherImage

MagickDecipherImage() converts cipher pixels to plain pixels.

The format of the MagickDecipherImage method is:

  MagickBooleanType MagickDecipherImage(MagickWand *wand,
    const char *passphrase)

A description of each parameter follows:

wand

    the magick wand.

passphrase

    the passphrase.

MagickDeconstructImages

MagickDeconstructImages() compares each image with the next in a sequence and returns the maximum bounding region of any pixel differences it discovers.

The format of the MagickDeconstructImages method is:

  MagickWand *MagickDeconstructImages(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickDeskewImage

MagickDeskewImage() removes skew from the image. Skew is an artifact that occurs in scanned images because of the camera being misaligned, imperfections in the scanning or surface, or simply because the paper was not placed completely flat when scanned.

The format of the MagickDeskewImage method is:

  MagickBooleanType MagickDeskewImage(MagickWand *wand,
    const double threshold)

A description of each parameter follows:

wand

    the magick wand.

threshold

    separate background from foreground.

MagickDespeckleImage

MagickDespeckleImage() reduces the speckle noise in an image while perserving the edges of the original image.

The format of the MagickDespeckleImage method is:

  MagickBooleanType MagickDespeckleImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickDestroyImage

MagickDestroyImage() dereferences an image, deallocating memory associated with the image if the reference count becomes zero.

The format of the MagickDestroyImage method is:

  Image *MagickDestroyImage(Image *image)

A description of each parameter follows:

image

    the image.

MagickDisplayImage

MagickDisplayImage() displays an image.

The format of the MagickDisplayImage method is:

  MagickBooleanType MagickDisplayImage(MagickWand *wand,
    const char *server_name)

A description of each parameter follows:

wand

    the magick wand.

server_name

    the X server name.

MagickDisplayImages

MagickDisplayImages() displays an image or image sequence.

The format of the MagickDisplayImages method is:

  MagickBooleanType MagickDisplayImages(MagickWand *wand,
    const char *server_name)

A description of each parameter follows:

wand

    the magick wand.

server_name

    the X server name.

MagickDistortImage

MagickDistortImage() distorts an image using various distortion methods, by mapping color lookups of the source image to a new destination image usally of the same size as the source image, unless 'bestfit' is set to true.

If 'bestfit' is enabled, and distortion allows it, the destination image is adjusted to ensure the whole source 'image' will just fit within the final destination image, which will be sized and offset accordingly. Also in many cases the virtual offset of the source image will be taken into account in the mapping.

The format of the MagickDistortImage method is:

  MagickBooleanType MagickDistortImage(MagickWand *wand,
    const DistortImageMethod method,const unsigned long number_arguments,
    const double *arguments,const MagickBooleanType bestfit)

A description of each parameter follows:

image

    the image to be distorted.

method

    the method of image distortion.

ArcDistortion always ignores the source image offset, and always 'bestfit' the destination image with the top left corner offset relative to the polar mapping center.

Bilinear has no simple inverse mapping so it does not allow 'bestfit' style of image distortion.

Affine, Perspective, and Bilinear, do least squares fitting of the distortion when more than the minimum number of control point pairs are provided.

Perspective, and Bilinear, falls back to a Affine distortion when less that 4 control point pairs are provided. While Affine distortions let you use any number of control point pairs, that is Zero pairs is a no-Op (viewport only) distrotion, one pair is a translation and two pairs of control points do a scale-rotate-translate, without any shearing.

number_arguments

    the number of arguments given for this distortion method.

arguments

    the arguments for this distortion method.

bestfit

    Attempt to resize destination to fit distorted source.

MagickDrawImage

MagickDrawImage() renders the drawing wand on the current image.

The format of the MagickDrawImage method is:

  MagickBooleanType MagickDrawImage(MagickWand *wand,
    const DrawingWand *drawing_wand)

A description of each parameter follows:

wand

    the magick wand.

drawing_wand

    the draw wand.

MagickEdgeImage

MagickEdgeImage() enhance edges within the image with a convolution filter of the given radius. Use a radius of 0 and Edge() selects a suitable radius for you.

The format of the MagickEdgeImage method is:

  MagickBooleanType MagickEdgeImage(MagickWand *wand,const double radius)

A description of each parameter follows:

wand

    the magick wand.

radius

    the radius of the pixel neighborhood.

MagickEmbossImage

MagickEmbossImage() returns a grayscale image with a three-dimensional effect. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and Emboss() selects a suitable radius for you.

The format of the MagickEmbossImage method is:

  MagickBooleanType MagickEmbossImage(MagickWand *wand,const double radius,
    const double sigma)

A description of each parameter follows:

wand

    the magick wand.

radius

    the radius of the Gaussian, in pixels, not counting the center pixel.

sigma

    the standard deviation of the Gaussian, in pixels.

MagickEncipherImage

MagickEncipherImage() converts plaint pixels to cipher pixels.

The format of the MagickEncipherImage method is:

  MagickBooleanType MagickEncipherImage(MagickWand *wand,
    const char *passphrase)

A description of each parameter follows:

wand

    the magick wand.

passphrase

    the passphrase.

MagickEnhanceImage

MagickEnhanceImage() applies a digital filter that improves the quality of a noisy image.

The format of the MagickEnhanceImage method is:

  MagickBooleanType MagickEnhanceImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickEqualizeImage

MagickEqualizeImage() equalizes the image histogram.

The format of the MagickEqualizeImage method is:

  MagickBooleanType MagickEqualizeImage(MagickWand *wand)
  MagickBooleanType MagickEqualizeImageChannel(MagickWand *wand,
    const ChannelType channel)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

MagickEvaluateImage

MagickEvaluateImage() applys an arithmetic, relational, or logical expression to an image. Use these operators to lighten or darken an image, to increase or decrease contrast in an image, or to produce the "negative" of an image.

The format of the MagickEvaluateImage method is:

  MagickBooleanType MagickEvaluateImage(MagickWand *wand,
    const MagickEvaluateOperator op,const double constant)
  MagickBooleanType MagickEvaluateImageChannel(MagickWand *wand,
    const MagickEvaluateOperator op,const double constant)

A description of each parameter follows:

wand

    the magick wand.

op

    A channel operator.

constant

    A constant value.

MagickExtentImage

MagickExtentImage() extends the image as defined by the geometry, gravity, and wand background color. Set the (x,y) offset of the geometry to move the original wand relative to the extended wand.

The format of the MagickExtentImage method is:

  MagickBooleanType MagickExtentImage(MagickWand *wand,
    const unsigned long width,const unsigned long height,const long x,
    const long y)

A description of each parameter follows:

wand

    the magick wand.

width

    the region width.

height

    the region height.

x

    the region x offset.

y

    the region y offset.

MagickFlipImage

MagickFlipImage() creates a vertical mirror image by reflecting the pixels around the central x-axis.

The format of the MagickFlipImage method is:

  MagickBooleanType MagickFlipImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickFloodfillPaintImage

MagickFloodfillPaintImage() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.

The format of the MagickFloodfillPaintImage method is:

  MagickBooleanType MagickFloodfillPaintImage(MagickWand *wand,
    const ChannelType channel,const PixelWand *fill,const double fuzz,
    const PixelWand *bordercolor,const long x,const long y,
    const MagickBooleanType invert)

A description of each parameter follows:

wand

    the magick wand.

channel

    the channel(s).

fill

    the floodfill color pixel wand.

fuzz

    By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.

bordercolor

    the border color pixel wand.

x,y

    the starting location of the operation.

invert

    paint any pixel that does not match the target color.

MagickFlopImage

MagickFlopImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis.

The format of the MagickFlopImage method is:

  MagickBooleanType MagickFlopImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickFrameImage

MagickFrameImage() adds a simulated three-dimensional border around the image. The width and height specify the border width of the vertical and horizontal sides of the frame. The inner and outer bevels indicate the width of the inner and outer shadows of the frame.

The format of the MagickFrameImage method is:

  MagickBooleanType MagickFrameImage(MagickWand *wand,
    const PixelWand *matte_color,const unsigned long width,
    const unsigned long height,const long inner_bevel,
    const long outer_bevel)

A description of each parameter follows:

wand

    the magick wand.

matte_color

    the frame color pixel wand.

width

    the border width.

height

    the border height.

inner_bevel

    the inner bevel width.

outer_bevel

    the outer bevel width.

MagickFxImage

MagickFxImage() evaluate expression for each pixel in the image.

The format of the MagickFxImage method is:

  MagickWand *MagickFxImage(MagickWand *wand,const char *expression)
  MagickWand *MagickFxImageChannel(MagickWand *wand,
    const ChannelType channel,const char *expression)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

expression

    the expression.

MagickGammaImage

MagickGammaImage() gamma-corrects an image. The same image viewed on different devices will have perceptual differences in the way the image's intensities are represented on the screen. Specify individual gamma levels for the red, green, and blue channels, or adjust all three with the gamma parameter. Values typically range from 0.8 to 2.3.

You can also reduce the influence of a particular channel with a gamma value of 0.

The format of the MagickGammaImage method is:

  MagickBooleanType MagickGammaImage(MagickWand *wand,const double gamma)
  MagickBooleanType MagickGammaImageChannel(MagickWand *wand,
    const ChannelType channel,const double gamma)

A description of each parameter follows:

wand

    the magick wand.

channel

    the channel.

level

    Define the level of gamma correction.

MagickGaussianBlurImage

MagickGaussianBlurImage() blurs an image. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and MagickGaussianBlurImage() selects a suitable radius for you.

The format of the MagickGaussianBlurImage method is:

  MagickBooleanType MagickGaussianBlurImage(MagickWand *wand,
    const double radius,const double sigma)
  MagickBooleanType MagickGaussianBlurImageChannel(MagickWand *wand,
    const ChannelType channel,const double radius,const double sigma)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

radius

    the radius of the Gaussian, in pixels, not counting the center pixel.

sigma

    the standard deviation of the Gaussian, in pixels.

MagickGetImage

MagickGetImage() gets the image at the current image index.

The format of the MagickGetImage method is:

  MagickWand *MagickGetImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageAlphaChannel

MagickGetImageAlphaChannel() returns MagickFalse if the image alpha channel is not activated. That is, the image is RGB rather than RGBA or CMYK rather than CMYKA.

The format of the MagickGetImageAlphaChannel method is:

  unsigned long MagickGetImageAlphaChannel(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageClipMask

MagickGetImageClipMask() gets the image clip mask at the current image index.

The format of the MagickGetImageClipMask method is:

  MagickWand *MagickGetImageClipMask(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageBackgroundColor

MagickGetImageBackgroundColor() returns the image background color.

The format of the MagickGetImageBackgroundColor method is:

  MagickBooleanType MagickGetImageBackgroundColor(MagickWand *wand,
    PixelWand *background_color)

A description of each parameter follows:

wand

    the magick wand.

background_color

    Return the background color.

MagickGetImageBlob

MagickGetImageBlob() implements direct to memory image formats. It returns the image as a blob and its length. Use MagickSetFormat() to set the format of the returned blob (GIF, JPEG, PNG, etc.).

Use MagickRelinquishMemory() to free the blob when you are done with it.

The format of the MagickGetImageBlob method is:

  unsigned char *MagickGetImageBlob(MagickWand *wand,size_t *length)

A description of each parameter follows:

wand

    the magick wand.

length

    the length of the blob.

MagickGetImageBlob

MagickGetImageBlob() implements direct to memory image formats. It returns the image sequence as a blob and its length. The format of the image determines the format of the returned blob (GIF, JPEG, PNG, etc.). To return a different image format, use MagickSetImageFormat().

Note, some image formats do not permit multiple images to the same image stream (e.g. JPEG). in this instance, just the first image of the sequence is returned as a blob.

The format of the MagickGetImagesBlob method is:

  unsigned char *MagickGetImagesBlob(MagickWand *wand,size_t *length)

A description of each parameter follows:

wand

    the magick wand.

length

    the length of the blob.

MagickGetImageBluePrimary

MagickGetImageBluePrimary() returns the chromaticy blue primary point for the image.

The format of the MagickGetImageBluePrimary method is:

  MagickBooleanType MagickGetImageBluePrimary(MagickWand *wand,double *x,
    double *y)

A description of each parameter follows:

wand

    the magick wand.

x

    the chromaticity blue primary x-point.

y

    the chromaticity blue primary y-point.

MagickGetImageBorderColor

MagickGetImageBorderColor() returns the image border color.

The format of the MagickGetImageBorderColor method is:

  MagickBooleanType MagickGetImageBorderColor(MagickWand *wand,
    PixelWand *border_color)

A description of each parameter follows:

wand

    the magick wand.

border_color

    Return the border color.

MagickGetImageChannelDepth

MagickGetImageChannelDepth() gets the depth for one or more image channels.

The format of the MagickGetImageChannelDepth method is:

  unsigned long MagickGetImageChannelDepth(MagickWand *wand,
    const ChannelType channel)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

MagickGetImageChannelDistortion

MagickGetImageChannelDistortion() compares one or more image channels of an image to a reconstructed image and returns the specified distortion metric.

The format of the MagickGetImageChannelDistortion method is:

  MagickBooleanType MagickGetImageChannelDistortion(MagickWand *wand,
    const MagickWand *reference,const ChannelType channel,
    const MetricType metric,double *distortion)

A description of each parameter follows:

wand

    the magick wand.

reference

    the reference wand.

channel

    the channel.

metric

    the metric.

distortion

    the computed distortion between the images.

MagickGetImageChannelDistortions

MagickGetImageChannelDistortions() compares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics.

Use MagickRelinquishMemory() to free the metrics when you are done with them.

The format of the MagickGetImageChannelDistortion method is:

  double *MagickGetImageChannelDistortion(MagickWand *wand,
    const MagickWand *reference,const MetricType metric)

A description of each parameter follows:

wand

    the magick wand.

reference

    the reference wand.

metric

    the metric.

MagickGetImageChannelMean

MagickGetImageChannelMean() gets the mean and standard deviation of one or more image channels.

The format of the MagickGetImageChannelMean method is:

  MagickBooleanType MagickGetImageChannelMean(MagickWand *wand,
    const ChannelType channel,double *mean,double *standard_deviation)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

mean

    The mean pixel value for the specified channel(s).

standard_deviation

    The standard deviation for the specified channel(s).

MagickGetImageChannelRange

MagickGetImageChannelRange() gets the range for one or more image channels.

The format of the MagickGetImageChannelRange method is:

  MagickBooleanType MagickGetImageChannelRange(MagickWand *wand,
    const ChannelType channel,double *minima,double *maxima)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

minima

    The minimum pixel value for the specified channel(s).

maxima

    The maximum pixel value for the specified channel(s).

MagickGetImageChannelStatistics

MagickGetImageChannelStatistics() returns statistics for each channel in the image. The statistics incude the channel depth, its minimand maxima, the mean, and the standard deviation. You can access the red channel mean, for example, like this:

  channel_statistics=MagickGetImageChannelStatistics(image,excepton);
  red_mean=channel_statistics[RedChannel].mean;

Use MagickRelinquishMemory() to free the statistics buffer.

The format of the MagickGetImageChannelStatistics method is:

  ChannelStatistics *MagickGetImageChannelStatistics(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageColormapColor

MagickGetImageColormapColor() returns the color of the specified colormap index.

The format of the MagickGetImageColormapColor method is:

  MagickBooleanType MagickGetImageColormapColor(MagickWand *wand,
    const unsigned long index,PixelWand *color)

A description of each parameter follows:

wand

    the magick wand.

index

    the offset into the image colormap.

color

    Return the colormap color in this wand.

MagickGetImageColors

MagickGetImageColors() gets the number of unique colors in the image.

The format of the MagickGetImageColors method is:

  unsigned long MagickGetImageColors(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageColorspace

MagickGetImageColorspace() gets the image colorspace.

The format of the MagickGetImageColorspace method is:

  ColorspaceType MagickGetImageColorspace(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageCompose

MagickGetImageCompose() returns the composite operator associated with the image.

The format of the MagickGetImageCompose method is:

  CompositeOperator MagickGetImageCompose(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageCompression

MagickGetImageCompression() gets the image compression.

The format of the MagickGetImageCompression method is:

  CompressionType MagickGetImageCompression(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageCompression

MagickGetImageCompression() gets the image compression quality.

The format of the MagickGetImageCompression method is:

  unsigned long MagickGetImageCompression(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageDelay

MagickGetImageDelay() gets the image delay.

The format of the MagickGetImageDelay method is:

  unsigned long MagickGetImageDelay(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageDepth

MagickGetImageDepth() gets the image depth.

The format of the MagickGetImageDepth method is:

  unsigned long MagickGetImageDepth(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageDistortion

MagickGetImageDistortion() compares an image to a reconstructed image and returns the specified distortion metric.

The format of the MagickGetImageDistortion method is:

  MagickBooleanType MagickGetImageDistortion(MagickWand *wand,
    const MagickWand *reference,const MetricType metric,
    double *distortion)

A description of each parameter follows:

wand

    the magick wand.

reference

    the reference wand.

metric

    the metric.

distortion

    the computed distortion between the images.

MagickGetImageDispose

MagickGetImageDispose() gets the image disposal method.

The format of the MagickGetImageDispose method is:

  DisposeType MagickGetImageDispose(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageFilename

MagickGetImageFilename() returns the filename of a particular image in a sequence.

The format of the MagickGetImageFilename method is:

  char *MagickGetImageFilename(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageFormat

MagickGetImageFormat() returns the format of a particular image in a sequence.

The format of the MagickGetImageFormat method is:

  const char MagickGetImageFormat(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageGamma

MagickGetImageGamma() gets the image gamma.

The format of the MagickGetImageGamma method is:

  double MagickGetImageGamma(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageGravity

MagickGetImageGravity() gets the image gravity.

The format of the MagickGetImageGravity method is:

  GravityType MagickGetImageGravity(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageGreenPrimary

MagickGetImageGreenPrimary() returns the chromaticy green primary point.

The format of the MagickGetImageGreenPrimary method is:

  MagickBooleanType MagickGetImageGreenPrimary(MagickWand *wand,double *x,
    double *y)

A description of each parameter follows:

wand

    the magick wand.

x

    the chromaticity green primary x-point.

y

    the chromaticity green primary y-point.

MagickGetImageHeight

MagickGetImageHeight() returns the image height.

The format of the MagickGetImageHeight method is:

  unsigned long MagickGetImageHeight(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageHistogram

MagickGetImageHistogram() returns the image histogram as an array of PixelWand wands.

The format of the MagickGetImageHistogram method is:

  PixelWand *MagickGetImageHistogram(MagickWand *wand,
    unsigned long *number_colors)

A description of each parameter follows:

wand

    the magick wand.

number_colors

    the number of unique colors in the image and the number of pixel wands returned.

MagickGetImageInterlaceScheme

MagickGetImageInterlaceScheme() gets the image interlace scheme.

The format of the MagickGetImageInterlaceScheme method is:

  InterlaceType MagickGetImageInterlaceScheme(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageInterpolateMethod

MagickGetImageInterpolateMethod() returns the interpolation method for the sepcified image.

The format of the MagickGetImageInterpolateMethod method is:

  InterpolatePixelMethod MagickGetImageInterpolateMethod(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageIterations

MagickGetImageIterations() gets the image iterations.

The format of the MagickGetImageIterations method is:

  unsigned long MagickGetImageIterations(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageLength

MagickGetImageLength() returns the image length in bytes.

The format of the MagickGetImageLength method is:

  MagickBooleanType MagickGetImageLength(MagickWand *wand,
    MagickSizeType *length)

A description of each parameter follows:

wand

    the magick wand.

length

    the image length in bytes.

MagickGetImageMatteColor

MagickGetImageMatteColor() returns the image matte color.

The format of the MagickGetImageMatteColor method is:

  MagickBooleanType MagickGetImagematteColor(MagickWand *wand,
    PixelWand *matte_color)

A description of each parameter follows:

wand

    the magick wand.

matte_color

    Return the matte color.

MagickGetImageOrientation

MagickGetImageOrientation() returns the image orientation.

The format of the MagickGetImageOrientation method is:

  OrientationType MagickGetImageOrientation(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImagePage

MagickGetImagePage() returns the page geometry associated with the image.

The format of the MagickGetImagePage method is:

  MagickBooleanType MagickGetImagePage(MagickWand *wand,
    unsigned long *width,unsigned long *height,long *x,long *y)

A description of each parameter follows:

wand

    the magick wand.

width

    the page width.

height

    the page height.

x

    the page x-offset.

y

    the page y-offset.

MagickGetImagePixelColor

MagickGetImagePixelColor() returns the color of the specified pixel.

The format of the MagickGetImagePixelColor method is:

  MagickBooleanType MagickGetImagePixelColor(MagickWand *wand,
    const long x,const long y,PixelWand *color)

A description of each parameter follows:

wand

    the magick wand.

x,y

    the pixel offset into the image.

color

    Return the colormap color in this wand.

MagickGetAuthenticPixels

MagickGetAuthenticPixels() extracts pixel data from an image and returns it to you. The method returns MagickTrue on success otherwise MagickFalse if an error is encountered. The data is returned as char, short int, int, long, float, or double in the order specified by map.

Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:

  MagickGetAuthenticPixels(wand,0,0,640,1,"RGB",CharPixel,pixels);

The format of the MagickGetAuthenticPixels method is:

  MagickBooleanType MagickGetAuthenticPixels(MagickWand *wand,
    const long x,const long y,const unsigned long columns,
    const unsigned long rows,const char *map,const StorageType storage,
    void *pixels)

A description of each parameter follows:

wand

    the magick wand.

x, y, columns, rows

    These values define the perimeter of a region of pixels you want to extract.

map

    This string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent), O = opacity (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad.

storage

    Define the data type of the pixels. Float and double types are expected to be normalized [0..1] otherwise [0..QuantumRange]. Choose from these types: CharPixel, DoublePixel, FloatPixel, IntegerPixel, LongPixel, QuantumPixel, or ShortPixel.

pixels

    This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type.

MagickGetImageRedPrimary

MagickGetImageRedPrimary() returns the chromaticy red primary point.

The format of the MagickGetImageRedPrimary method is:

  MagickBooleanType MagickGetImageRedPrimary(MagickWand *wand,double *x,
    double *y)

A description of each parameter follows:

wand

    the magick wand.

x

    the chromaticity red primary x-point.

y

    the chromaticity red primary y-point.

MagickGetImageRegion

MagickGetImageRegion() extracts a region of the image and returns it as a a new wand.

The format of the MagickGetImageRegion method is:

  MagickWand *MagickGetImageRegion(MagickWand *wand,
    const unsigned long width,const unsigned long height,const long x,
    const long y)

A description of each parameter follows:

wand

    the magick wand.

width

    the region width.

height

    the region height.

x

    the region x offset.

y

    the region y offset.

MagickGetImageRenderingIntent

MagickGetImageRenderingIntent() gets the image rendering intent.

The format of the MagickGetImageRenderingIntent method is:

  RenderingIntent MagickGetImageRenderingIntent(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageResolution

MagickGetImageResolution() gets the image X and Y resolution.

The format of the MagickGetImageResolution method is:

  MagickBooleanType MagickGetImageResolution(MagickWand *wand,double *x,
    double *y)

A description of each parameter follows:

wand

    the magick wand.

x

    the image x-resolution.

y

    the image y-resolution.

MagickGetImageScene

MagickGetImageScene() gets the image scene.

The format of the MagickGetImageScene method is:

  unsigned long MagickGetImageScene(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageSignature

MagickGetImageSignature() generates an SHA-256 message digest for the image pixel stream.

The format of the MagickGetImageSignature method is:

  const char MagickGetImageSignature(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageTicksPerSecond

MagickGetImageTicksPerSecond() gets the image ticks-per-second.

The format of the MagickGetImageTicksPerSecond method is:

  unsigned long MagickGetImageTicksPerSecond(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageType

MagickGetImageType() gets the potential image type:

Bilevel Grayscale GrayscaleMatte Palette PaletteMatte TrueColor TrueColorMatte ColorSeparation ColorSeparationMatte

To ensure the image type matches its potential, use MagickSetImageType():

      (void) MagickSetImageType(wand,MagickGetImageType(wand));

The format of the MagickGetImageType method is:

  ImageType MagickGetImageType(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageUnits

MagickGetImageUnits() gets the image units of resolution.

The format of the MagickGetImageUnits method is:

  ResolutionType MagickGetImageUnits(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageVirtualPixelMethod

MagickGetImageVirtualPixelMethod() returns the virtual pixel method for the sepcified image.

The format of the MagickGetImageVirtualPixelMethod method is:

  VirtualPixelMethod MagickGetImageVirtualPixelMethod(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageWhitePoint

MagickGetImageWhitePoint() returns the chromaticy white point.

The format of the MagickGetImageWhitePoint method is:

  MagickBooleanType MagickGetImageWhitePoint(MagickWand *wand,double *x,
    double *y)

A description of each parameter follows:

wand

    the magick wand.

x

    the chromaticity white x-point.

y

    the chromaticity white y-point.

MagickGetImageWidth

MagickGetImageWidth() returns the image width.

The format of the MagickGetImageWidth method is:

  unsigned long MagickGetImageWidth(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetNumberImages

MagickGetNumberImages() returns the number of images associated with a magick wand.

The format of the MagickGetNumberImages method is:

  unsigned long MagickGetNumberImages(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickGetImageTotalInkDensity

MagickGetImageTotalInkDensity() gets the image total ink density.

The format of the MagickGetImageTotalInkDensity method is:

  double MagickGetImageTotalInkDensity(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickHasNextImage

MagickHasNextImage() returns MagickTrue if the wand has more images when traversing the list in the forward direction

The format of the MagickHasNextImage method is:

  MagickBooleanType MagickHasNextImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickHasPreviousImage

MagickHasPreviousImage() returns MagickTrue if the wand has more images when traversing the list in the reverse direction

The format of the MagickHasPreviousImage method is:

  MagickBooleanType MagickHasPreviousImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickIdentifyImage

MagickIdentifyImage() identifies an image by printing its attributes to the file. Attributes include the image width, height, size, and others.

The format of the MagickIdentifyImage method is:

  const char *MagickIdentifyImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickImplodeImage

MagickImplodeImage() creates a new image that is a copy of an existing one with the image pixels "implode" by the specified percentage. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.

The format of the MagickImplodeImage method is:

  MagickBooleanType MagickImplodeImage(MagickWand *wand,
    const double radius)

A description of each parameter follows:

wand

    the magick wand.

amount

    Define the extent of the implosion.

MagickLabelImage

MagickLabelImage() adds a label to your image.

The format of the MagickLabelImage method is:

  MagickBooleanType MagickLabelImage(MagickWand *wand,const char *label)

A description of each parameter follows:

wand

    the magick wand.

label

    the image label.

MagickLevelImage

MagickLevelImage() adjusts the levels of an image by scaling the colors falling between specified white and black points to the full available quantum range. The parameters provided represent the black, mid, and white points. The black point specifies the darkest color in the image. Colors darker than the black point are set to zero. Mid point specifies a gamma correction to apply to the image. White point specifies the lightest color in the image. Colors brighter than the white point are set to the maximum quantum value.

The format of the MagickLevelImage method is:

  MagickBooleanType MagickLevelImage(MagickWand *wand,
    const double black_point,const double gamma,const double white_point)
  MagickBooleanType MagickLevelImageChannel(MagickWand *wand,
    const ChannelType channel,const double black_point,const double gamma,
    const double white_point)

A description of each parameter follows:

wand

    the magick wand.

channel

    Identify which channel to level: RedChannel, GreenChannel,

black_point

    the black point.

gamma

    the gamma.

white_point

    the white point.

MagickLinearStretchImage

MagickLinearStretchImage() stretches with saturation the image intensity.

You can also reduce the influence of a particular channel with a gamma value of 0.

The format of the MagickLinearStretchImage method is:

  MagickBooleanType MagickLinearStretchImage(MagickWand *wand,
    const double black_point,const double white_point)

A description of each parameter follows:

wand

    the magick wand.

black_point

    the black point.

white_point

    the white point.

MagickLiquidRescaleImage

MagickLiquidRescaleImage() rescales image with seam carving.

MagickBooleanType MagickLiquidRescaleImage(MagickWand *wand, const unsigned long columns,const unsigned long rows, const double delta_x,const double rigidity)

A description of each parameter follows:

wand

    the magick wand.

columns

    the number of columns in the scaled image.

rows

    the number of rows in the scaled image.

delta_x

    maximum seam transversal step (0 means straight seams).

rigidity

    introduce a bias for non-straight seams (typically 0).

MagickMagnifyImage

MagickMagnifyImage() is a convenience method that scales an image proportionally to twice its original size.

The format of the MagickMagnifyImage method is:

  MagickBooleanType MagickMagnifyImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickMedianFilterImage

MagickMedianFilterImage() applies a digital filter that improves the quality of a noisy image. Each pixel is replaced by the median in a set of neighboring pixels as defined by radius.

The format of the MagickMedianFilterImage method is:

  MagickBooleanType MagickMedianFilterImage(MagickWand *wand,
    const double radius)

A description of each parameter follows:

wand

    the magick wand.

radius

    the radius of the pixel neighborhood.

MagickMergeImageLayers

MagickMergeImageLayers() composes all the image layers from the current given image onward to produce a single image of the merged layers.

The inital canvas's size depends on the given ImageLayerMethod, and is initialized using the first images background color. The images are then compositied onto that image in sequence using the given composition that has been assigned to each individual image.

The format of the MagickMergeImageLayers method is:

  MagickWand *MagickMergeImageLayers(MagickWand *wand,
    const ImageLayerMethod method)

A description of each parameter follows:

wand

    the magick wand.

method

    the method of selecting the size of the initial canvas.

MergeLayer: Merge all layers onto a canvas just large enough to hold all the actual images. The virtual canvas of the first image is preserved but otherwise ignored.

FlattenLayer: Use the virtual canvas size of first image. Images which fall outside this canvas is clipped. This can be used to 'fill out' a given virtual canvas.

MosaicLayer: Start with the virtual canvas of the first image, enlarging left and right edges to contain all images. Images with negative offsets will be clipped.

MagickMinifyImage

MagickMinifyImage() is a convenience method that scales an image proportionally to one-half its original size

The format of the MagickMinifyImage method is:

  MagickBooleanType MagickMinifyImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickModulateImage

MagickModulateImage() lets you control the brightness, saturation, and hue of an image. Hue is the percentage of absolute rotation from the current position. For example 50 results in a counter-clockwise rotation of 90 degrees, 150 results in a clockwise rotation of 90 degrees, with 0 and 200 both resulting in a rotation of 180 degrees.

To increase the color brightness by 20 and decrease the color saturation by 10 and leave the hue unchanged, use: 120,90,100.

The format of the MagickModulateImage method is:

  MagickBooleanType MagickModulateImage(MagickWand *wand,
    const double brightness,const double saturation,const double hue)

A description of each parameter follows:

wand

    the magick wand.

brightness

    the percent change in brighness.

saturation

    the percent change in saturation.

hue

    the percent change in hue.

MagickMontageImage

MagickMontageImage() creates a composite image by combining several separate images. The images are tiled on the composite image with the name of the image optionally appearing just below the individual tile.

The format of the MagickMontageImage method is:

  MagickWand *MagickMontageImage(MagickWand *wand,
    const DrawingWand drawing_wand,const char *tile_geometry,
    const char *thumbnail_geometry,const MontageMode mode,
    const char *frame)

A description of each parameter follows:

wand

    the magick wand.

drawing_wand

    the drawing wand. The font name, size, and color are obtained from this wand.

tile_geometry

    the number of tiles per row and page (e.g. 6x4+0+0).

thumbnail_geometry

    Preferred image size and border size of each thumbnail (e.g. 120x120+4+3>).

mode

    Thumbnail framing mode: Frame, Unframe, or Concatenate.

frame

    Surround the image with an ornamental border (e.g. 15x15+3+3). The frame color is that of the thumbnail's matte color.

MagickMorphImages

MagickMorphImages() method morphs a set of images. Both the image pixels and size are linearly interpolated to give the appearance of a meta-morphosis from one image to the next.

The format of the MagickMorphImages method is:

  MagickWand *MagickMorphImages(MagickWand *wand,
    const unsigned long number_frames)

A description of each parameter follows:

wand

    the magick wand.

number_frames

    the number of in-between images to generate.

MagickMotionBlurImage

MagickMotionBlurImage() simulates motion blur. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and MotionBlurImage() selects a suitable radius for you. Angle gives the angle of the blurring motion.

The format of the MagickMotionBlurImage method is:

  MagickBooleanType MagickMotionBlurImage(MagickWand *wand,
    const double radius,const double sigma,const double angle)
  MagickBooleanType MagickMotionBlurImageChannel(MagickWand *wand,
    const ChannelType channel,const double radius,const double sigma,
    const double angle)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

radius

    the radius of the Gaussian, in pixels, not counting the center pixel.

sigma

    the standard deviation of the Gaussian, in pixels.

angle

    Apply the effect along this angle.

MagickNegateImage

MagickNegateImage() negates the colors in the reference image. The Grayscale option means that only grayscale values within the image are negated.

You can also reduce the influence of a particular channel with a gamma value of 0.

The format of the MagickNegateImage method is:

  MagickBooleanType MagickNegateImage(MagickWand *wand,
    const MagickBooleanType gray)
  MagickBooleanType MagickNegateImage(MagickWand *wand,
    const ChannelType channel,const MagickBooleanType gray)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

gray

    If MagickTrue, only negate grayscale pixels within the image.

MagickNewImage

MagickNewImage() adds a blank image canvas of the specified size and background color to the wand.

The format of the MagickNewImage method is:

  MagickBooleanType MagickNewImage(MagickWand *wand,
    const unsigned long columns,const unsigned long rows,
    const PixelWand *background)

A description of each parameter follows:

wand

    the magick wand.

width

    the image width.

height

    the image height.

background

    the image color.

MagickNextImage

MagickNextImage() associates the next image in the image list with a magick wand.

The format of the MagickNextImage method is:

  MagickBooleanType MagickNextImage(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickNormalizeImage

MagickNormalizeImage() enhances the contrast of a color image by adjusting the pixels color to span the entire range of colors available

You can also reduce the influence of a particular channel with a gamma value of 0.

The format of the MagickNormalizeImage method is:

  MagickBooleanType MagickNormalizeImage(MagickWand *wand)
  MagickBooleanType MagickNormalizeImageChannel(MagickWand *wand,
    const ChannelType channel)

A description of each parameter follows:

wand

    the magick wand.

channel

    the image channel(s).

MagickOilPaintImage

MagickOilPaintImage() applies a special effect filter that simulates an oil painting. Each pixel is replaced by the most frequent color occurring in a circular region defined by radius.

The format of the MagickOilPaintImage method is:

  MagickBooleanType MagickOilPaintImage(MagickWand *wand,
    const double radius)

A description of each parameter follows:

wand

    the magick wand.

radius

    the radius of the circular neighborhood.

MagickOpaquePaintImage

MagickOpaquePaintImage() changes any pixel that matches color with the color defined by fill.

The format of the MagickOpaquePaintImage method is:

  MagickBooleanType MagickOpaquePaintImage(MagickWand *wand,
    const PixelWand *target,const PixelWand *fill,const double fuzz,
    const MagickBooleanType invert)
  MagickBooleanType MagickOpaquePaintImageChannel(MagickWand *wand,
    const ChannelType channel,const PixelWand *target,
    const PixelWand *fill,const double fuzz,const MagickBooleanType invert)

A description of each parameter follows:

wand

    the magick wand.

channel

    the channel(s).

target

    Change this target color to the fill color within the image.

fill

    the fill pixel wand.

fuzz

    By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.

invert

    paint any pixel that does not match the target color.

MagickOptimizeImageLayers

MagickOptimizeImageLayers() compares each image the GIF disposed forms of the previous image in the sequence. From this it attempts to select the smallest cropped image to replace each frame, while preserving the results of the animation.

The format of the MagickOptimizeImageLayers method is:

  MagickWand *MagickOptimizeImageLayers(MagickWand *wand)

A description of each parameter follows:

wand

    the magick wand.

MagickOrderedPosterizeImage

MagickOrderedPosterizeImage() performs an ordered dither based on a number of pre-defined dithering threshold maps, but over multiple intensity levels, which can be different for different channels, according to the input arguments.

The format of the MagickOrderedPosterizeImage method is:

  MagickBooleanType MagickOrderedPosterizeImage(MagickWand *wand,
    const char *threshold_map)
  MagickBooleanType MagickOrderedPosterizeImageChannel(MagickWand *wand,
    const ChannelType channel,const char *threshold_map)

A description of each parameter follows:

image

    the image.

channel

    the channel or channels to be thresholded.

threshold_map

    A string containing the name of the threshold dither map to use, followed by zero or more numbers representing the number of color levels tho dither between.

Any level number less than 2 is equivelent to 2, and means only binary dithering will be applied to each color channel.

No numbers also means a 2 level (bitmap) dither will be applied to all channels, while a single number is the number of levels applied to each channel in sequence. More numbers will be applied in turn to each of the color channels.

For example: "o3x3,6" generates a 6 level posterization of the image with a ordered 3x3 diffused pixel dither being applied between each level. While checker,8,8,4 will produce a 332 colormaped image with only a single checkerboard hash pattern (50 grey) between each color level, to basically double the number of color levels with a bare minimim of dithering.

MagickPingImage

MagickPingImage() is like MagickReadImage() except the only valid information returned is the image width, height, size, and format. It is designed to efficiently obtain this information from a file without reading the entire image sequence into memory.

The format of the MagickPingImage method is:

  MagickBooleanType MagickPingImage(MagickWand *wand,const char *filename)

A description of each parameter follows:

wand

    the magick wand.

filename

    the image filename.

MagickPingImageBlob

MagickPingImageBlob() pings an image or image sequence from a blob.

The format of the MagickPingImageBlob method is:

  MagickBooleanType MagickPingImageBlob(MagickWand *wand,
    const void *blob,const size_t length)

A description of each parameter follows:

wand

    the magick wand.

blob

    the blob.

length

    the blob length.

MagickPingImageFile

MagickPingImageFile() pings an image or image sequence from an open file descriptor.

The format of the MagickPingImageFile method is:

  MagickBooleanType MagickPingImageFile(MagickWand *wand,FILE *file)

A description of each parameter follows:

wand

    the magick wand.

file

    the file descriptor.

MagickPolaroidImage

MagickPolaroidImage() simulates a Polaroid picture.

The format of the MagickPolaroidImage method is:

  MagickBooleanType MagickPolaroidImage(MagickWand *wand,
    const DrawingWand *drawing_wand,const double angle)

A description of each parameter follows:

wand

    the magick wand.

drawing_wand

    the draw wand.

angle

    Apply the effect along this angle.

MagickPosterizeImage

MagickPosterizeImage() reduces the image to a limited number of color level.

The format of the MagickPosterizeImage method is:

  MagickBooleanType MagickPosterizeImage(MagickWand *wand,
    const unsigned levels,const MagickBooleanType dither)

A description of each parameter follows:

wand

    the magick wand.

levels

    Number of color levels allowed in eac