[
About ImageMagick
] [ Command-line Tools Processing Options Usage Program Interfaces MagickWand MagickCore PerlMagick Magick++ Architecture ] [ Install from Source Unix Windows Binary Releases Unix Mac OS X Windows Resources ] [ Download ] [ Site Map Links ] [ Sponsors: ] |
CharcoalImage() creates a new image that is a copy of an existing one with the edge highlighted. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. The format of the CharcoalImage method is: Image *CharcoalImage(const Image *image,const double radius, const double sigma,ExceptionInfo *exception) A description of each parameter follows: imagethe image. radiusthe radius of the pixel neighborhood. sigmathe standard deviation of the Gaussian, in pixels. exceptionReturn any errors or warnings in this structure. ColorizeImage() blends the fill color with each pixel in the image. A percentage blend is specified with opacity. Control the application of different color components by specifying a different percentage for each component (e.g. 90/100/10 is 90 red, 100 green, and 10 blue). The format of the ColorizeImage method is: Image *ColorizeImage(const Image *image,const char *opacity, const PixelPacket colorize,ExceptionInfo *exception) A description of each parameter follows: imagethe image. opacityA character string indicating the level of opacity as a percentage. colorizeA color value. exceptionReturn any errors or warnings in this structure. ConvolveImage() applies a custom convolution kernel to the image. The format of the ConvolveImage method is: Image *ConvolveImage(const Image *image,const unsigned long order, const double *kernel,ExceptionInfo *exception) Image *ConvolveImageChannel(const Image *image,const ChannelType channel, const unsigned long order,const double *kernel, ExceptionInfo *exception) A description of each parameter follows: imagethe image. channelthe channel type. orderthe number of columns and rows in the filter kernel. kernelAn array of double representing the convolution kernel. exceptionReturn any errors or warnings in this structure. EvaluateImage() applies a value to the image with an arithmetic, relational, or logical operator to an image. Use these operations 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 EvaluateImageChannel method is: MagickBooleanType EvaluateImage(Image *image, const MagickEvaluateOperator op,const double value, ExceptionInfo *exception) MagickBooleanType EvaluateImageChannel(Image *image, const ChannelType channel,const MagickEvaluateOperator op, const double value,ExceptionInfo *exception) A description of each parameter follows: imagethe image. channelthe channel. opA channel op. valueA value value. exceptionReturn any errors or warnings in this structure. FxImage() applies a mathematical expression to the specified image. The format of the FxImage method is: Image *FxImage(const Image *image,const char *expression, ExceptionInfo *exception) Image *FxImageChannel(const Image *image,const ChannelType channel, const char *expression,ExceptionInfo *exception) A description of each parameter follows: imagethe image. channelthe channel. expressionA mathematical expression. exceptionReturn any errors or warnings in this structure. ImplodeImage() 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 ImplodeImage method is: Image *ImplodeImage(const Image *image,const double amount, ExceptionInfo *exception) A description of each parameter follows: implode_imageMethod ImplodeImage returns a pointer to the image after it is implode. A null image is returned if there is a memory shortage. imagethe image. amountDefine the extent of the implosion. exceptionReturn any errors or warnings in this structure. The MorphImages() method requires a minimum of two images. The first image is transformed into the second by a number of intervening images as specified by frames. The format of the MorphImage method is: Image *MorphImages(const Image *image,const unsigned long number_frames, ExceptionInfo *exception) A description of each parameter follows: imagethe image. number_framesDefine the number of in-between image to generate. The more in-between frames, the smoother the morph. exceptionReturn any errors or warnings in this structure. PolaroidImage() simulates a Polaroid picture. The format of the AnnotateImage method is: Image *PolaroidImage(const Image *image,const DrawInfo *draw_info, const double angle,ExceptionInfo exception) A description of each parameter follows: imagethe image. draw_infothe draw info. angleApply the effect along this angle. exceptionReturn any errors or warnings in this structure. RecolorImage() translate, scale, shear, or rotate image colors. Although you can use variable sized matrices, typically you use a 5 x 5 for an RGBA image and a 6x6 for CMYKA. Populate the last row with normalized values to translate. The format of the RecolorImage method is: Image *RecolorImage(const Image *image,const unsigned long order, const double *color_matrix,ExceptionInfo *exception) A description of each parameter follows: imagethe image. orderthe number of columns and rows in the recolor matrix. color_matrixAn array of double representing the recolor matrix. exceptionReturn any errors or warnings in this structure. MagickSepiaToneImage() applies a special effect to the image, similar to the effect achieved in a photo darkroom by sepia toning. Threshold ranges from 0 to QuantumRange and is a measure of the extent of the sepia toning. A threshold of 80 is a good starting point for a reasonable tone. The format of the SepiaToneImage method is: Image *SepiaToneImage(const Image *image,const double threshold, ExceptionInfo *exception) A description of each parameter follows: imagethe image. thresholdthe tone threshold. exceptionReturn any errors or warnings in this structure. ShadowImage() simulates a shadow from the specified image and returns it. The format of the ShadowImage method is: Image *ShadowImage(const Image *image,const double opacity, const double sigma,const long x_offset,const long y_offset, ExceptionInfo *exception) A description of each parameter follows: imagethe image. opacitypercentage transparency. sigmathe standard deviation of the Gaussian, in pixels. x_offsetthe shadow x-offset. y_offsetthe shadow y-offset. exceptionReturn any errors or warnings in this structure. SketchImage() simulates a pencil sketch. 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 SketchImage() selects a suitable radius for you. Angle gives the angle of the sketch. The format of the SketchImage method is: Image *SketchImage(const Image *image,const double radius, const double sigma,const double angle,ExceptionInfo *exception) A description of each parameter follows: imagethe image. radiusthe radius of the Gaussian, in pixels, not counting the center pixel. sigmathe standard deviation of the Gaussian, in pixels. angleApply the effect along this angle. exceptionReturn any errors or warnings in this structure. SolarizeImage() applies a special effect to the image, similar to the effect achieved in a photo darkroom by selectively exposing areas of photo sensitive paper to light. Threshold ranges from 0 to QuantumRange and is a measure of the extent of the solarization. The format of the SolarizeImage method is: MagickBooleanType SolarizeImage(Image *image,const double threshold) A description of each parameter follows: imagethe image. thresholdDefine the extent of the solarization. SteganoImage() hides a digital watermark within the image. Recover the hidden watermark later to prove that the authenticity of an image. Offset defines the start position within the image to hide the watermark. The format of the SteganoImage method is: Image *SteganoImage(const Image *image,Image *watermark, ExceptionInfo *exception) A description of each parameter follows: imagethe image. watermarkthe watermark image. exceptionReturn any errors or warnings in this structure. StereoImage() combines two images and produces a single image that is the composite of a left and right image of a stereo pair. Special red-green stereo glasses are required to view this effect. The format of the StereoImage method is: Image *StereoImage(const Image *image,const Image *offset_image, ExceptionInfo *exception) A description of each parameter follows: imagethe image. offset_imageAnother image. exceptionReturn any errors or warnings in this structure. SwirlImage() swirls the pixels about the center of the image, where degrees indicates the sweep of the arc through which each pixel is moved. You get a more dramatic effect as the degrees move from 1 to 360. The format of the SwirlImage method is: Image *SwirlImage(const Image *image,double degrees, ExceptionInfo *exception) A description of each parameter follows: imagethe image. degreesDefine the tightness of the swirling effect. exceptionReturn any errors or warnings in this structure. TintImage() applies a color vector to each pixel in the image. The length of the vector is 0 for black and white and at its maximum for the midtones. The vector weighting function is f(x)=(1-(4.0*((x-0.5)*(x-0.5)))) The format of the TintImage method is: Image *TintImage(const Image *image,const char *opacity, const PixelPacket tint,ExceptionInfo *exception) A description of each parameter follows: imagethe image. opacityA color value used for tinting. tintA color value used for tinting. exceptionReturn any errors or warnings in this structure. VignetteImage() softens the edges of the image in vignette style. The format of the VignetteImage method is: Image *VignetteImage(const Image *image,const double radius, const double sigma,const long x,const long y,ExceptionInfo *exception) A description of each parameter follows: imagethe image. radiusthe radius of the pixel neighborhood. sigmathe standard deviation of the Gaussian, in pixels. x, yDefine the x and y ellipse offset. exceptionReturn any errors or warnings in this structure. WaveImage() creates a "ripple" effect in the image by shifting the pixels vertically along a sine wave whose amplitude and wavelength is specified by the given parameters. The format of the WaveImage method is: Image *WaveImage(const Image *image,const double amplitude, const double wave_length,ExceptionInfo *exception) A description of each parameter follows: imagethe image. amplitude, wave_lengthDefine the amplitude and wave length of the sine wave. exceptionReturn any errors or warnings in this structure. |