![]() |
![]() |
![]() |
![]() |
NAMEmagick_wand - Magick Wand
SYNOPSISunsigned int DestroyMagickWand( MagickWand *wand ); unsigned int MagickAddNoiseImage( MagickWand *wand, const NoiseType noise_type ); unsigned int MagickAffineTransformImage( MagickWand *wand, const DrawingWand *draw_wand ); unsigned int MagickAffineTransformImage( MagickWand *wand, const DrawingWand *draw_wand ); unsigned int MagickAnimateImages( MagickWand *wand, const char *server_name ); unsigned int MagickAnnotateImage( MagickWand *wand, const DrawingWand *draw_wand ); unsigned int MagickBlurImage( MagickWand *wand, const double radius, const double sigma ); unsigned int MagickBorderImage( MagickWand *wand, const unsigned long width, const unsigned long height, PixelWand *bordercolor ); unsigned int MagickBorderImage( MagickWand *wand, const unsigned long width, const unsigned long height, PixelWand *bordercolor ); unsigned int MagickChannelImage( MagickWand *wand, const ChannelType channel ); unsigned int MagickCharcoalImage( MagickWand *wand, const double radius, const double sigma ); unsigned int MagickChopImage( MagickWand *wand, const unsigned long width, const unsigned long height, const long x, const long y ); unsigned int MagickClipImage( MagickWand *wand ); unsigned int MagickCloneWand( MagickWand *wand ); unsigned int MagickContrastImage( MagickWand *wand, const unsigned int sharpen ); unsigned int MagickCropImage( MagickWand *wand, const unsigned long width, const unsigned long height, const long x, const long y ); unsigned int MagickDisplayImage( MagickWand *wand, const char *server_name ); unsigned int MagickDisplayImages( MagickWand *wand, const char *server_name ); unsigned int MagickDrawImage( MagickWand *wand, const DrawingWand *draw_wand ); unsigned int MagickGetException( MagickWand *wand, char ** description ); const char * MagickGetFilename( MagickWand *wand ); const char MagickGetImageFilename( MagickWand *wand ); unsigned int MagickGetImagePixels( MagickWand *wand, const long x_offset, const long y_offset, const unsigned long columns, const unsigned long rows, const char *map, const StorageType storage, void *pixels ); unsigned long MagickGetNumberOfImages( MagickWand *wand ); void MagickGetSize( MagickWand *wand, unsigned long *columns, unsigned long *rows ); const char MagickNextImage( MagickWand *wand ); const char MagickPreviousImage( MagickWand *wand ); unsigned int MagickReadImage( MagickWand *wand, const char *filename ); unsigned int MagickRemoveImage( MagickWand *wand ); unsigned int MagickResizeImage( MagickWand *wand, const unsigned long columns, const unsigned long rows, const FilterTypes filter, const double blur ); unsigned int MagickRotateImage( MagickWand *wand, const double degrees ); void MagickSetFilename( MagickWand *wand, const char *filename ); void MagickSetFuzzyColorDistance( MagickWand *wand, const double distance ); const char MagickSetImage( MagickWand *wand, const unsigned long scene ); unsigned int MagickSetImageFilename( MagickWand *wand, const char *filename ); unsigned int MagickSetImagePixels( MagickWand *wand, const long x_offset, const long y_offset, const unsigned long columns, const unsigned long rows, const char *map, const StorageType storage, void *pixels ); void MagickSetSize( MagickWand *wand, const unsigned long columns, const unsigned long rows ); unsigned int MagickWriteImage( MagickWand *wand, const char *filename ); unsigned int MagickWriteImages( MagickWand *wand, const char *filename ); MagickWand NewMagickWand( void );
FUNCTION DESCRIPTIONS
DestroyMagickWandDestroyMagickWand() deallocates memory associated with an MagickWand. The format of the DestroyMagickWand method is: unsigned int DestroyMagickWand ( MagickWand *wand ); A description of each parameter follows:
MagickAdaptiveThresoldImage
The format of the AdaptiveThresholdImage method is: unsigned int MagickAdaptiveThresholdImage(MagickWand *wand, const unsigned long width,const unsigned long height,const long offset) A description of each parameter follows:
MagickAddNoiseImageMagickAddNoiseImage() adds random noise to the image. The format of the MagickAddNoiseImage method is: unsigned int MagickAddNoiseImage ( MagickWand *wand, const NoiseType noise_type ); A description of each parameter follows:
MagickAffineTransformImageMagickAffineTransformImage() transforms an image as dictated by the affine matrix of the drawing wand. The format of the MagickAffineTransformImage method is: unsigned int MagickAffineTransformImage ( MagickWand *wand, const DrawingWand *draw_wand ); A description of each parameter follows:
MagickAnnotateImageMagickAnnotateImage() annotates an image with text. The format of the MagickAnnotateImage method is: unsigned int MagickAnnotateImage ( MagickWand *wand, const DrawingWand *draw_wand ); A description of each parameter follows:
MagickAnimateImagesMagickAnimateImages() animates an image or image sequence. The format of the MagickAnimateImages method is: unsigned int MagickAnimateImages ( MagickWand *wand, const char *server_name ); A description of each parameter follows:
MagickAffineTransformImage
The format of the MagickBlackThresholdImage method is: unsigned int MagickBlackThresholdImage(MagickWand *wand, const PixelWant *pixel_wand) A description of each parameter follows:
MagickBlurImageMagickBlurImage() 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: unsigned int MagickBlurImage ( MagickWand *wand, const double radius, const double sigma ); A description of each parameter follows:
MagickBorderImageMagickBorderImage() surrounds the image with a border of the color defined by the bordercolor pixel wand. The format of the MagickBorderImage method is: unsigned int MagickBorderImage ( MagickWand *wand, const unsigned long width, const unsigned long height, PixelWand *bordercolor ); A description of each parameter follows:
MagickChannelImageMagickChannelImage() extracts a channel from the image. A channel is a particular color component of each pixel in the image. The format of the MagickChannelImage method is: unsigned int MagickChannelImage ( MagickWand *wand, const ChannelType channel ); A description of each parameter follows:
MagickCharcoalImageMagickCharcoalImage() simulates a charcoal drawing. The format of the MagickCharcoalImage method is: unsigned int MagickCharcoalImage ( MagickWand *wand, const double radius, const double sigma ); A description of each parameter follows:
MagickChopImageMagickChopImage() removes a region of an image and collapses the image to occupy the removed portion The format of the MagickChopImage method is: unsigned int MagickChopImage ( MagickWand *wand, const unsigned long width, const unsigned long height, const long x, const long y ); A description of each parameter follows:
MagickCloneWandMagickCloneWand() deallocates memory associated with an MagickWand. The format of the MagickCloneWand method is: unsigned int MagickCloneWand ( MagickWand *wand ); A description of each parameter follows:
MagickClipImageMagickClipImage() ets the image clip mask based any clipping path information if it exists. The format of the MagickClipImage method is: unsigned int MagickClipImage ( MagickWand *wand ); A description of each parameter follows:
MagickCoelesceImage
The format of the MagickCoalesceImages method is: MagickWand *MagickCoalesceImages(MagickWand *wand) A description of each parameter follows:
MagickBorderImage
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. The format of the MagickColorFloodfillImage method is: unsigned int MagickColorFloodfillImage(MagickWand *wand,const long x, const long y,PixelWand *fill,PixelWand *bordercolor) A description of each parameter follows:
MagickContrastImageMagickContrastImage() 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: unsigned int MagickContrastImage ( MagickWand *wand, const unsigned int sharpen ); A description of each parameter follows:
MagickCropImageMagickCropImage() extracts a region of the image. The format of the MagickCropImage method is: unsigned int MagickCropImage ( MagickWand *wand, const unsigned long width, const unsigned long height, const long x, const long y ); A description of each parameter follows:
MagickDisplayImageMagickDisplayImage() displays an image. The format of the MagickDisplayImage method is: unsigned int MagickDisplayImage ( MagickWand *wand, const char *server_name ); A description of each parameter follows:
MagickDisplayImagesMagickDisplayImages() displays an image or image sequence. The format of the MagickDisplayImages method is: unsigned int MagickDisplayImages ( MagickWand *wand, const char *server_name ); A description of each parameter follows:
MagickDrawImageMagickDrawImage() draw an image the specified number of degrees. The format of the MagickDrawImage method is: unsigned int MagickDrawImage ( MagickWand *wand, const DrawingWand *draw_wand ); A description of each parameter follows:
MagickGetExceptionMagickGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API. The format of the MagickGetException method is: unsigned int MagickGetException ( MagickWand *wand, char **description ); A description of each parameter follows:
MagickGetFilenameMagickGetFilename() returns the filename associated with an image sequence. The format of the MagickGetFilename method is: const char *MagickGetFilename ( MagickWand *wand ); A description of each parameter follows:
MagickGetImageFilenameMagickGetImageFilename() returns the filename of a particular image in a sequence. The format of the MagickGetImageFilename method is: const char MagickGetImageFilename ( MagickWand *wand ); A description of each parameter follows:
MagickGetImagePixelsMagickGetImagePixels() extracts pixel data from an image and returns it to you. The method returns False on success otherwise True 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: MagickGetImagePixels ( wand, 0, 0, 0, 640, 1, "RGB", CharPixel, pixels );; The format of the MagickGetImagePixels method is: unsigned int MagickGetImagePixels ( MagickWand *wand, const long x_offset, const long y_offset, const unsigned long columns, const unsigned long rows, const char *map, const StorageType storage, void *pixels ); A description of each parameter follows:
MagickGetNumberOfImagesMagickGetNumberOfImages() returns the number of images associated with a magick wand. The format of the MagickGetNumberOfImages method is: unsigned long MagickGetNumberOfImages ( MagickWand *wand ); A description of each parameter follows:
MagickGetSizeMagickGetSize() returns the size associated with the magick wand. The format of the MagickGetSize method is: void MagickGetSize ( MagickWand *wand, unsigned long *columns, unsigned long *rows ); A description of each parameter follows:
MagickNextImageMagickNextImage() selects the next image associated with a magick wand. The format of the MagickNextImage method is: const char MagickNextImage ( MagickWand *wand ); A description of each parameter follows:
MagickPreviousImageMagickPreviousImage() selects the previous image associated with a magick wand. The format of the MagickPreviousImage method is: const char MagickPreviousImage ( MagickWand *wand ); A description of each parameter follows:
MagickReadImageMagickReadImage() reads an image or image sequence. The format of the MagickReadImage method is: unsigned int MagickReadImage ( MagickWand *wand, const char *filename ); A description of each parameter follows:
MagickRemoveImageMagickRemoveImage() removes an image from the image list. The format of the MagickRemoveImage method is: unsigned int MagickRemoveImage ( MagickWand *wand ); A description of each parameter follows:
MagickResizeImageMagickResizeImage() scales an image to the desired dimensions with one of these filters: Bessel Blackman Box Catrom Cubic Gaussian Hanning Hermite Lanczos Mitchell Point Quandratic Sinc Triangle Most of the filters are FIR (finite impulse response), however, Bessel, Gaussian, and Sinc are IIR (infinite impulse response). Bessel and Sinc are windowed (brought down to zero) with the Blackman filter. The format of the MagickResizeImage method is: unsigned int MagickResizeImage ( MagickWand *wand, const unsigned long columns, const unsigned long rows, const FilterTypes filter, const double blur ); A description of each parameter follows:
MagickRotateImageMagickRotateImage() rotates an image the specified number of degrees. The format of the MagickRotateImage method is: unsigned int MagickRotateImage ( MagickWand *wand, const double degrees ); A description of each parameter follows:
MagickSetFuzzyColorDistanceMagickSetFuzzyColorDistance() colors within the specified RGB distance- squared are treated by certain ImageMagick algorithms as the same color. The format of the MagickSetFuzzyColorDistance method is: void MagickSetFuzzyColorDistance ( MagickWand *wand, const double distance ); A description of each parameter follows:
MagickSetFilenameMagickSetFilename() sets the image filename before you read or write an image file. The format of the MagickSetFilename method is: void MagickSetFilename ( MagickWand *wand, const char *filename ); A description of each parameter follows:
MagickSetImageMagickSetImage() selects the image associated with a magick wand. The format of the MagickSetImage method is: const char MagickSetImage ( MagickWand *wand, const unsigned long scene ); A description of each parameter follows:
MagickSetImageFilenameMagickSetImageFilename() sets the filename of a particular image in a sequence. The format of the MagickSetImageFilename method is: unsigned int MagickSetImageFilename ( MagickWand *wand, const char *filename ); A description of each parameter follows:
MagickSetImagePixelsMagickSetImagePixels() accepts pixel data and stores it in the image at the location you specify. The method returns False on success otherwise True if an error is encountered. The pixel data can be either char, short int, int, long, float, or double in the order specified by map. Suppose your want want to upload the first scanline of a 640x480 image from character data in red-green-blue order: MagickSetImagePixels ( wand, 0, 0, 0, 640, 1, "RGB", CharPixel, pixels );; The format of the MagickSetImagePixels method is: unsigned int MagickSetImagePixels ( MagickWand *wand, const long x_offset, const long y_offset, const unsigned long columns, const unsigned long rows, const char *map, const StorageType storage, void *pixels ); A description of each parameter follows:
MagickSetSizeMagickSetSize() sets the size of the magick wand. Set it before you read a raw image format such as RGB, GRAY, or CMYK. The format of the MagickSetSize method is: void MagickSetSize ( MagickWand *wand, const unsigned long columns, const unsigned long rows ); A description of each parameter follows:
MagickWriteImageMagickWriteImage() writes an image. The format of the MagickWriteImage method is: unsigned int MagickWriteImage ( MagickWand *wand, const char *filename ); A description of each parameter follows:
MagickWriteImagesMagickWriteImages() writes an image or image sequence. The format of the MagickWriteImages method is: unsigned int MagickWriteImages ( MagickWand *wand, const char *filename ); A description of each parameter follows:
NewMagickWandNewMagickWand() returns a wand required for all other methods in the API. The format of the NewMagickWand method is: MagickWand NewMagickWand ( void ); ![]() |