MagickWand, C API: Image Methods
GetImageFromMagickWand • MagickAdaptiveBlurImage • MagickAdaptiveResizeImage • MagickAdaptiveSharpenImage • MagickAdaptiveThresholdImage • MagickAddImage • MagickAddNoiseImage • MagickAffineTransformImage • MagickAnnotateImage • MagickAnimateImages • MagickAppendImages • MagickAutoGammaImage • MagickAutoLevelImage • MagickAutoOrientImage • MagickAutoThresholdImage • MagickBlackThresholdImage • MagickBlueShiftImage • MagickBlurImage • MagickBorderImage • Use MagickBrightnessContrastImage • MagickCannyEdgeImage • MagickChannelFxImage • MagickCharcoalImage • MagickChopImage • MagickCLAHEImage • MagickClampImage • MagickClipImage • MagickClipImagePath • MagickClutImage • MagickCoalesceImages • MagickColorDecisionListImage • MagickColorizeImage • MagickColorMatrixImage • MagickCombineImages • MagickCommentImage • MagickCompareImagesLayers • MagickCompareImages • MagickComplexImages • MagickCompositeImage • MagickCompositeImageGravity • MagickCompositeLayers • MagickConnectedComponentsImage • MagickContrastImage • MagickContrastStretchImage • MagickConvolveImage • MagickCropImage • MagickCycleColormapImage • MagickConstituteImage • MagickDecipherImage • MagickDeconstructImages • MagickDeskewImage • MagickDespeckleImage • MagickDestroyImage • MagickDisplayImage • MagickDisplayImages • MagickDistortImage • MagickDrawImage • MagickEdgeImage • MagickEmbossImage • MagickEncipherImage • MagickEnhanceImage • MagickEqualizeImage • MagickEvaluateImage • MagickExportImagePixels • MagickExtentImage • MagickFlipImage • MagickFloodfillPaintImage • MagickFlopImage • MagickForwardFourierTransformImage • MagickFrameImage • MagickFunctionImage • MagickFxImage • MagickGammaImage • MagickGaussianBlurImage • MagickGetImage • MagickGetImageAlphaChannel • MagickGetImageMask • MagickGetImageBackgroundColor • MagickGetImageBlob • MagickGetImagesBlob • MagickGetImageBluePrimary • MagickGetImageBorderColor • MagickGetImageFeatures • MagickGetImageKurtosis • MagickGetImageMean • MagickGetImageRange • MagickGetImageStatistics • MagickGetImageColormapColor • MagickGetImageColors • MagickGetImageColorspace • MagickGetImageCompose • MagickGetImageCompression • MagickGetImageCompressionQuality • MagickGetImageDelay • MagickGetImageDepth • MagickGetImageDispose • MagickGetImageDistortion • MagickGetImageDistortions • MagickGetImageEndian • MagickGetImageFilename • MagickGetImageFormat • MagickGetImageFuzz • MagickGetImageGamma • MagickGetImageGravity • MagickGetImageGreenPrimary • MagickGetImageHeight • MagickGetImageHistogram • MagickGetImageInterlaceScheme • MagickGetImageInterpolateMethod • MagickGetImageIterations • MagickGetImageLength • MagickGetImageMatteColor • MagickGetImageOrientation • MagickGetImagePage • MagickGetImagePixelColor • MagickGetImageRedPrimary • MagickGetImageRegion • MagickGetImageRenderingIntent • MagickGetImageResolution • MagickGetImageScene • MagickGetImageSignature • MagickGetImageTicksPerSecond • MagickGetImageType • MagickGetImageUnits • MagickGetImageVirtualPixelMethod • MagickGetImageWhitePoint • MagickGetImageWidth • MagickGetNumberImages • MagickGetImageTotalInkDensity • MagickHaldClutImage • MagickHasNextImage • MagickHasPreviousImage • Use MagickHoughLineImage • MagickIdentifyImage • MagickIdentifyImageType • MagickImplodeImage • MagickImportImagePixels • MagickInterpolativeResizeImage • MagickInverseFourierTransformImage • Use MagickKuwaharaImage • MagickLabelImage • MagickLevelImage • MagickLevelImageColors • MagickLevelizeImage • MagickLinearStretchImage • MagickLiquidRescaleImage • MagickLocalContrastImage • MagickMagnifyImage • MagickMeanShiftImage • MagickMergeImageLayers • MagickMinifyImage • MagickModulateImage • MagickMontageImage • MagickMorphImages • MagickMorphologyImage • MagickMotionBlurImage • MagickNegateImage • MagickNewImage • MagickNextImage • MagickNormalizeImage • MagickOilPaintImage • MagickOpaquePaintImage • MagickOptimizeImageLayers • MagickOptimizeImageTransparency • MagickOrderedDitherImage • MagickPingImage • MagickPingImageBlob • MagickPingImageFile • MagickPolaroidImage • MagickPolynomialImage • MagickPosterizeImage • MagickPreviewImages • MagickPreviousImage • MagickQuantizeImage • MagickQuantizeImages • MagickRangeThresholdImage • MagickRotationalBlurImage • MagickRaiseImage • MagickRandomThresholdImage • MagickReadImage • MagickReadImageBlob • MagickReadImageFile • MagickRemapImage • MagickRemoveImage • MagickResampleImage • MagickResetImagePage • MagickResizeImage • MagickRollImage • MagickRotateImage • MagickSampleImage • MagickScaleImage • MagickSegmentImage • MagickSelectiveBlurImage • MagickSeparateImage • MagickSepiaToneImage • MagickSetImage • MagickSetImageAlphaChannel • MagickSetImageBackgroundColor • MagickSetImageBluePrimary • MagickSetImageBorderColor • MagickSetImageChannelMask • MagickSetImageMask • MagickSetImageColor • MagickSetImageColormapColor • MagickSetImageColorspace • MagickSetImageCompose • MagickSetImageCompression • MagickSetImageCompressionQuality • MagickSetImageDelay • MagickSetImageDepth • MagickSetImageDispose • MagickSetImageEndian • MagickSetImageExtent • MagickSetImageFilename • MagickSetImageFormat • MagickSetImageFuzz • MagickSetImageGamma • MagickSetImageGravity • MagickSetImageGreenPrimary • MagickSetImageInterlaceScheme • MagickSetImageInterpolateMethod • MagickSetImageIterations • MagickSetImageMatte • MagickSetImageMatteColor • MagickSetImageAlpha • MagickSetImageOrientation • MagickSetImagePage • MagickSetImagePixelColor • MagickSetImageProgressMonitor • MagickSetImageRedPrimary • MagickSetImageRenderingIntent • MagickSetImageResolution • MagickSetImageScene • MagickSetImageTicksPerSecond • MagickSetImageType • MagickSetImageUnits • MagickSetImageVirtualPixelMethod • MagickSetImageWhitePoint • MagickShadeImage • MagickShadowImage • MagickSharpenImage • MagickShaveImage • MagickShearImage • MagickSigmoidalContrastImage • MagickSimilarityImage • MagickSketchImage • MagickSmushImages • MagickSolarizeImage • MagickSparseColorImage • MagickSpliceImage • MagickSpreadImage • MagickStatisticImage • MagickSteganoImage • MagickStereoImage • MagickStripImage • MagickSwirlImage • MagickTextureImage • MagickThresholdImage • MagickThumbnailImage • MagickTintImage • MagickTransformImageColorspace • MagickTransparentPaintImage • MagickTransposeImage • MagickTransverseImage • MagickTrimImage • MagickUniqueImageColors • MagickUnsharpMaskImage • MagickVignetteImage • MagickWaveImage • MagickWaveletDenoiseImage • MagickWhiteThresholdImage • MagickWriteImage • MagickWriteImageFile • MagickWriteImages • MagickWriteImagesFile
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)
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.
MagickAdaptiveResizeImage
MagickAdaptiveResizeImage() adaptively resize image with data dependent triangulation.
MagickBooleanType MagickAdaptiveResizeImage(MagickWand *wand, const size_t columns,const size_t 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)
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.
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 size_t width,const size_t height,const double bias)
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 bias.
MagickAddImage
MagickAddImage() adds a clone of the images from the second wand and inserts them into the first wand.
Use MagickSetLastIterator(), to append new images into an existing wand, current image will be set to last image so later adds with also be appened to end of wand.
Use MagickSetFirstIterator() to prepend new images into wand, any more images added will also be prepended before other images in the wand. However the order of a list of new images will not change.
Otherwise the new images will be inserted just after the current image, and any later image will also be added after this current image but before the previously added images. Caution is advised when multiple image adds are inserted into the middle of the wand image list.
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 the image list to be added
MagickAddNoiseImage
MagickAddNoiseImage() adds random noise to the image.
The format of the MagickAddNoiseImage method is:
MagickBooleanType MagickAddNoiseImage(MagickWand *wand, const NoiseType noise_type,const double attenuate)
A description of each parameter follows:
- wand
- the magick wand.
- noise_type
- The type of noise: Uniform, Gaussian, Multiplicative, Impulse, Laplacian, or Poisson.
- attenuate
- attenuate the random distribution.
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 the images in a wand from the current image onwards, creating a new wand with the single image result. This is affected by the gravity and background settings of the first image.
Typically you would call either MagickResetIterator() or MagickSetFirstImage() before calling this function to ensure that all the images in the wand's image list will be appended together.
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.
MagickAutoGammaImage
MagickAutoGammaImage() extracts the 'mean' from the image and adjust the image to try make set its gamma appropriatally.
The format of the MagickAutoGammaImage method is:
MagickBooleanType MagickAutoGammaImage(MagickWand *wand)
A description of each parameter follows:
- wand
- the magick wand.
MagickAutoLevelImage
MagickAutoLevelImage() adjusts the levels of a particular image channel by scaling the minimum and maximum values to the full quantum range.
The format of the MagickAutoLevelImage method is:
MagickBooleanType MagickAutoLevelImage(MagickWand *wand)
A description of each parameter follows:
- wand
- the magick wand.
MagickAutoOrientImage
MagickAutoOrientImage() adjusts an image so that its orientation is suitable $ for viewing (i.e. top-left orientation).
The format of the MagickAutoOrientImage method is:
MagickBooleanType MagickAutoOrientImage(MagickWand *image)
A description of each parameter follows:
- wand
- the magick wand.
MagickAutoThresholdImage
MagickAutoThresholdImage() automatically performs image thresholding dependent on which method you specify.
The format of the AutoThresholdImage method is:
MagickBooleanType MagickAutoThresholdImage(MagickWand *wand, const AutoThresholdMethod method)
A description of each parameter follows:
- wand
- the magick wand.
- method
- choose from KapurThresholdMethod, OTSUThresholdMethod, or TriangleThresholdMethod.
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.
MagickBlueShiftImage
MagickBlueShiftImage() mutes the colors of the image to simulate a scene at nighttime in the moonlight.
The format of the MagickBlueShiftImage method is:
MagickBooleanType MagickBlueShiftImage(MagickWand *wand, const double factor)
A description of each parameter follows:
- wand
- the magick wand.
- factor
- the blue shift factor (default 1.5)
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)
A description of each parameter follows:
- wand
- the magick wand.
- 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 size_t width, const size_t height,const CompositeOperator compose)
A description of each parameter follows:
- wand
- the magick wand.
- bordercolor
- the border color pixel wand.
- width
- the border width.
- height
- the border height.
- compose
- the composite operator.
Use MagickBrightnessContrastImage
Use MagickBrightnessContrastImage() to change the brightness and/or contrast of an image. It converts the brightness and contrast parameters into slope and intercept and calls a polynomical function to apply to the image.
The format of the MagickBrightnessContrastImage method is:
MagickBooleanType MagickBrightnessContrastImage(MagickWand *wand, const double brightness,const double contrast)
A description of each parameter follows:
- wand
- the magick wand.
- brightness
- the brightness percent (-100 .. 100).
- contrast
- the contrast percent (-100 .. 100).
MagickCannyEdgeImage
MagickCannyEdgeImage() uses a multi-stage algorithm to detect a wide range of edges in images.
The format of the MagickCannyEdgeImage method is:
MagickBooleanType MagickCannyEdgeImage(MagickWand *wand, const double radius,const double sigma,const double lower_percent, const double upper_percent)
A description of each parameter follows:
- wand
- the magick wand.
- radius
- the radius of the gaussian smoothing filter.
- sigma
- the sigma of the gaussian smoothing filter.
- lower_percent
- percentage of edge pixels in the lower threshold.
- upper_percent
- percentage of edge pixels in the upper threshold.
MagickChannelFxImage
MagickChannelFxImage() applies a channel expression to the specified image. The expression consists of one or more channels, either mnemonic or numeric (e.g. red, 1), separated by actions as follows:
- <=> exchange two channels (e.g. red<=>blue) => transfer a channel to another (e.g. red=>green) , separate channel operations (e.g. red, green) | read channels from next input image (e.g. red | green) ; write channels to next output image (e.g. red; green; blue)
- A channel without a operation symbol implies extract. For example, to create 3 grayscale images from the red, green, and blue channels of an image, use:
-channel-fx "red; green; blue"
The format of the MagickChannelFxImage method is:
MagickWand *MagickChannelFxImage(MagickWand *wand,const char *expression)
A description of each parameter follows:
- wand
- the magick wand.
- expression
- the expression.
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 size_t width,const size_t height,const ssize_t x, const ssize_t 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.
MagickCLAHEImage
MagickCLAHEImage() is a variant of adaptive histogram equalization in which the contrast amplification is limited, so as to reduce this problem of noise amplification.
The format of the CLAHEImage method is:
MagickBooleanType MagickCLAHEImage(MagickWand *wand,const size_t width, const size_t height,const double number_bins,const double clip_limit)
A description of each parameter follows:
- wand
- the magick wand.
- width
- the width of the tile divisions to use in horizontal direction.
- height
- the height of the tile divisions to use in vertical direction.
- number_bins
- number of bins for histogram ("dynamic range").
- clip_limit
- contrast limit for localised changes in contrast. A limit less than 1 results in standard non-contrast limited AHE.
MagickClampImage
MagickClampImage() restricts the color range from 0 to the quantum depth.
The format of the MagickClampImage method is:
MagickBooleanType MagickClampImage(MagickWand *wand)
A description of each parameter follows:
- wand
- the magick wand.
- channel
- the channel.
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,const PixelInterpolateMethod method)
A description of each parameter follows:
- wand
- the magick wand.
- clut_image
- the clut image.
- method
- the pixel interpolation method.
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.
MagickColorDecisionListImage
MagickColorDecisionListImage() accepts a lightweight Color Correction Collection (CCC) file which solely contains one or more color corrections and applies the color correction to the image. Here is a sample CCC file:
<ColorCorrectionCollection xmlns="urn:ASC:CDL:v1.2"> <ColorCorrection > <SOPNode> <Slope> 0.9 1.2 0.5 </Slope> <Offset> 0.4 -0.5 0.6 </Offset> <Power> 1.0 0.8 1.5 </Power> </SOPNode> <SATNode> <Saturation> 0.85 </Saturation> </SATNode> </ColorCorrection> </ColorCorrectionCollection>
which includes the offset, slope, and power for each of the RGB channels as well as the saturation.
The format of the MagickColorDecisionListImage method is:
MagickBooleanType MagickColorDecisionListImage(MagickWand *wand, const char *color_correction_collection)
A description of each parameter follows:
- wand
- the magick wand.
- color_correction_collection
- the color correction collection in XML.
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 *blend)
A description of each parameter follows:
- wand
- the magick wand.
- colorize
- the colorize pixel wand.
- alpha
- the alpha pixel wand.
MagickColorMatrixImage
MagickColorMatrixImage() apply color transformation to an image. The method permits saturation changes, hue rotation, luminance to alpha, and various other effects. Although variable-sized transformation matrices can be used, typically one uses a 5x5 matrix for an RGBA image and a 6x6 for CMYKA (or RGBA with offsets). The matrix is similar to those used by Adobe Flash except offsets are in column 6 rather than 5 (in support of CMYKA images) and offsets are normalized (divide Flash offset by 255).
The format of the MagickColorMatrixImage method is:
MagickBooleanType MagickColorMatrixImage(MagickWand *wand, const KernelInfo *color_matrix)
A description of each parameter follows:
- wand
- the magick wand.
- color_matrix
- the color matrix.
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 ColorspaceType colorspace)
A description of each parameter follows:
- wand
- the magick wand.
- colorspace
- the colorspace.
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.
MagickCompareImagesLayers
MagickCompareImagesLayers() 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 MagickCompareImagesLayers method is:
MagickWand *MagickCompareImagesLayers(MagickWand *wand, const LayerMethod method)
A description of each parameter follows:
- wand
- the magick wand.
- method
- the compare method.
MagickCompareImages
MagickCompareImages() 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.
MagickComplexImages
MagickComplexImages() performs complex mathematics on an image sequence.
The format of the MagickComplexImages method is:
MagickWand *MagickComplexImages(MagickWand *wand, const ComplexOperator op)
A description of each parameter follows:
- wand
- the magick wand.
- op
- A complex operator. Choose from AddComplexOperator, ConjugateComplexOperator,DivideComplexOperator, MagnitudePhaseComplexOperator,MultiplyComplexOperator, RealImaginaryComplexOperator, SubtractComplexOperator.
MagickCompositeImage
MagickCompositeImage() composite one image onto another at the specified offset.
The format of the MagickCompositeImage method is:
MagickBooleanType MagickCompositeImage(MagickWand *wand, const MagickWand *source_wand,const CompositeOperator compose, const MagickBooleanType clip_to_self,const ssize_t x,const ssize_t y)
A description of each parameter follows:
- wand
- the magick wand holding the destination images
- source_image
- the magick wand holding source image.
- compose
- This operator affects how the composite is applied to the image. The default is Over. These are some of the compose methods availble.
- OverCompositeOp InCompositeOp OutCompositeOp AtopCompositeOp XorCompositeOp PlusCompositeOp MinusCompositeOp AddCompositeOp SubtractCompositeOp DifferenceCompositeOp BumpmapCompositeOp CopyCompositeOp DisplaceCompositeOp
- OverCompositeOp InCompositeOp OutCompositeOp AtopCompositeOp XorCompositeOp PlusCompositeOp MinusCompositeOp AddCompositeOp SubtractCompositeOp DifferenceCompositeOp BumpmapCompositeOp CopyCompositeOp DisplaceCompositeOp
- clip_to_self
- set to MagickTrue to limit composition to area composed.
- x
- the column offset of the composited image.
- y
- the row offset of the composited image.
MagickCompositeImageGravity
MagickCompositeImageGravity() composite one image onto another using the specified gravity.
The format of the MagickCompositeImageGravity method is:
MagickBooleanType MagickCompositeImageGravity(MagickWand *wand, const MagickWand *source_wand,const CompositeOperator compose, const GravityType gravity)
A description of each parameter follows:
- wand
- the magick wand holding the destination images
- source_image
- the magick wand holding source image.
- compose
- This operator affects how the composite is applied to the image. The default is Over. These are some of the compose methods availble.
- OverCompositeOp InCompositeOp OutCompositeOp AtopCompositeOp XorCompositeOp PlusCompositeOp MinusCompositeOp AddCompositeOp SubtractCompositeOp DifferenceCompositeOp BumpmapCompositeOp CopyCompositeOp DisplaceCompositeOp
- OverCompositeOp InCompositeOp OutCompositeOp AtopCompositeOp XorCompositeOp PlusCompositeOp MinusCompositeOp AddCompositeOp SubtractCompositeOp DifferenceCompositeOp BumpmapCompositeOp CopyCompositeOp DisplaceCompositeOp
- gravity
- positioning gravity (NorthWestGravity, NorthGravity, NorthEastGravity, WestGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity)
MagickCompositeLayers
MagickCompositeLayers() composite the images in the source wand over the images in the destination wand in sequence, starting with the current image in both lists.
Each layer from the two image lists are composted together until the end of one of the image lists is reached. The offset of each composition is also adjusted to match the virtual canvas offsets of each layer. As such the given offset is relative to the virtual canvas, and not the actual image.
Composition uses given x and y offsets, as the 'origin' location of the source images virtual canvas (not the real image) allowing you to compose a list of 'layer images' into the destiantioni images. This makes it well sutiable for directly composing 'Clears Frame Animations' or 'Coaleased Animations' onto a static or other 'Coaleased Animation' destination image list. GIF disposal handling is not looked at.
Special case:- If one of the image sequences is the last image (just a single image remaining), that image is repeatally composed with all the images in the other image list. Either the source or destination lists may be the single image, for this situation.
In the case of a single destination image (or last image given), that image will ve cloned to match the number of images remaining in the source image list.
This is equivelent to the "-layer Composite" Shell API operator.
The format of the MagickCompositeLayers method is:
MagickBooleanType MagickCompositeLayers(MagickWand *wand, const MagickWand *source_wand, const CompositeOperator compose, const ssize_t x,const ssize_t y)
A description of each parameter follows:
- wand
- the magick wand holding destaintion images
- source_wand
- the wand holding the source images
- compose, x, y
- composition arguments
MagickConnectedComponentsImage
MagickConnectedComponentsImage() returns the connected-components of the image uniquely labeled. The returned connected components image colors member defines the number of unique objects. Choose from 4 or 8-way connectivity.
The format of the MagickConnectedComponentsImage method is:
MagickBooleanType MagickConnectedComponentsImage(MagickWand *wand, const size_t connectivity,CCObjectInfo **objects)
A description of each parameter follows:
- wand
- the magick wand.
- connectivity
- how many neighbors to visit, choose from 4 or 8.
- objects
- return the attributes of each unique object.
MagickContrastImage
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)
A description of each parameter follows:
- wand
- the magick wand.
- 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 KernelInfo *kernel)
A description of each parameter follows:
- wand
- the magick wand.
- 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 size_t width,const size_t height,const ssize_t x,const ssize_t 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 ssize_t 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,480,"RGB",CharPixel,pixels);
The format of the MagickConstituteImage method is:
MagickBooleanType MagickConstituteImage(MagickWand *wand, const size_t columns,const size_t 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 = alpha (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 DistortMethod method,const size_t 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.
- 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.
- 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)
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 operator,const double value) MagickBooleanType MagickEvaluateImages(MagickWand *wand, const MagickEvaluateOperator operator)
A description of each parameter follows:
- wand
- the magick wand.
- op
- A channel operator.
- value
- A value value.
MagickExportImagePixels
MagickExportImagePixels() 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, ssize_t, 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:
MagickExportImagePixels(wand,0,0,640,1,"RGB",CharPixel,pixels);
The format of the MagickExportImagePixels method is:
MagickBooleanType MagickExportImagePixels(MagickWand *wand, const ssize_t x,const ssize_t y,const size_t columns, const size_t 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 = alpha (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.
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 size_t width, const size_t height,const ssize_t x,const ssize_t 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 PixelWand *fill,const double fuzz,const PixelWand *bordercolor, const ssize_t x,const ssize_t y,const MagickBooleanType invert)
A description of each parameter follows:
- wand
- the magick wand.
- 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.
MagickForwardFourierTransformImage
MagickForwardFourierTransformImage() implements the discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair.
The format of the MagickForwardFourierTransformImage method is:
MagickBooleanType MagickForwardFourierTransformImage(MagickWand *wand, const MagickBooleanType magnitude)
A description of each parameter follows:
- wand
- the magick wand.
- magnitude
- if true, return as magnitude / phase pair otherwise a real / imaginary image pair.
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 size_t width, const size_t height,const ssize_t inner_bevel, const ssize_t outer_bevel,const CompositeOperator compose)
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.
- compose
- the composite operator.
MagickFunctionImage
MagickFunctionImage() 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 MagickFunctionImage method is:
MagickBooleanType MagickFunctionImage(MagickWand *wand, const MagickFunction function,const size_t number_arguments, const double *arguments)
A description of each parameter follows:
- wand
- the magick wand.
- function
- the image function.
- number_arguments
- the number of function arguments.
- arguments
- the function arguments.
MagickFxImage
MagickFxImage() evaluate expression for each pixel in the image.
The format of the MagickFxImage method is:
MagickWand *MagickFxImage(MagickWand *wand,const char *expression)
A description of each parameter follows:
- wand
- the magick wand.
- 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)
A description of each parameter follows:
- wand
- the magick wand.
- 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)
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.
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:
MagickBooleanType MagickGetImageAlphaChannel(MagickWand *wand)
A description of each parameter follows:
- wand
- the magick wand.
MagickGetImageMask
MagickGetImageMask() gets the image clip mask at the current image index.
The format of the MagickGetImageMask method is:
MagickWand *MagickGetImageMask(MagickWand *wand)
A description of each parameter follows:
- wand
- the magick wand.
- type
- type of mask, ReadPixelMask or WritePixelMask.
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 (a formatted "file" in memory) and its length, starting from the current position in the image sequence. Use MagickSetImageFormat() to set the format to write to the blob (GIF, JPEG, PNG, etc.).
Utilize MagickResetIterator() to ensure the write is from the beginning of the image sequence.
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.
MagickGetImagesBlob
MagickGetImagesBlob() 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,double *z)
A description of each parameter follows:
- wand
- the magick wand.
- x
- the chromaticity blue primary x-point.
- y
- the chromaticity blue primary y-point.
- z
- the chromaticity blue primary z-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: