Magick Wand
MagickWand API. Used to hold the images as well as operate on them.
Constructors
Types
Functions
Adaptively resize the currently selected image.
Adds a clone of the images from the second wand and inserts them into the first wand.
Annotates an image with text.
Automatically adjusts the loaded image so that its orientation is suitable for viewing (i.e. top-left orientation).
Surrounds the image with a border of the color defined by the bordercolor pixel wand.
Clear any internal exceptions
Clone the wand into a new one.
Replaces colors in the image from a color lookup table.
Compares two images and returns the distortion and diffImage
It's recommended to manually destroy all wands when finished. Otherwise the memory will stay around forever until Magick.terminate
Renders the drawing wand on the current image.
Applies 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.
Get the internal exception type and message
Get the type of internal exception
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.
Gets the number of unique colors in the image.
Retrieve the height of the image.
Returns the image histogram as a List of PixelWand instances for every unique color.
Retrieve the PageGeometry (width, height, x offset, y offset) of the image.
Retrieve the named image property value.
Returns the image resolution (horizontal resolution, vertical resolution).
Retrieve the width of the image.
Replaces colors in the image from a Hald color lookup table. A Hald color lookup table is a 3-dimensional color cube mapped to 2 dimensions. Create it with the HALD coder. You can apply any color transformation to the Hald image and then use this method to apply the transform to the image.
Implodes the image towards the center by the specified percentage.
Accepts pixel datand stores it in the image at the location you specify. The method returns MagickTrue on success otherwise MagickFalse if an error is encountered. The pixel data can be either char, short int, int, ssize_t, float, or double in the order specified by map.
Adds a label to your image.
Adjusts the levels of an image by scaling the colors falling between specified white and black points to the full available quantum range.
Rescale the image using seam carving algorithm.
Control the brightness, saturation, and hue of an image
Negates the colors in the reference image. The Grayscale option means that only grayscale values within the image are negated.
Adds a blank image canvas of the specified size to the wand. Background color is pre-set to transparent.
Adds a blank image canvas of the specified size and background color to the wand.
Pings an image or image sequence from a blob.
Adds or removes an ICC, IPTC, or generic profile from an image. If the profile is null
, it is removed from the image otherwise added. Use a name of '*' and a profile of null
to remove all profiles from the image.
Reduce the number of colors in the image.
Reduce the number of colors in the image.
Reads an image or image sequence from a blob. In all other respects it is like readImage.
Detect if the loaded image is not in top-left orientation, and hence should be "auto" oriented, so it is suitable for viewing.
Reset the Wand page canvas and position.
Rotate the currently selected image by the given number of degrees, filling any empty space with the background color of a given PixelWand.
Sample the image to the target resolution
Set the background color.
Sets the wand iterator to the first image.
Sets the image to the specified alpha level.
Set the image alpha channel mode.
Set the image background color.
Sets image channel mask.
Set the named image property.
The limit for a particular resource.
Sets the image sampling factors.
Sets the size of the MagickWand. Set it before you read a raw image format such as RGB, GRAY, or CMYK.
Simulates an image shadow.
Strips an image of all profiles and comments.
Changes the size of an image to the given dimensions and removes any associated profiles. The goal is to produce small low cost thumbnail images suited for display on the Web.
Set the image colorspace, transforming (unlike imageColorspace) image data in the process.
Discard all but one of any pixel color.
Write the current image to the provided path.
Write the image in the desired format to a new blob.
Writes an image or image sequence.
Write the images in the desired format to a new blob.