NAMEtransform - Transform an Image
SYNOPSISImage * ChopImage( const Image *image, const RectangleInfo *chop_info ); Image * CoalesceImages( const Image *image, ExceptionInfo *exception ); Image * CropImage( const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception ); Image * DeconstructImages( const Image *image, ExceptionInfo *exception ); Image * FlattenImage( const Image *image, ExceptionInfo *exception ); Image * FlipImage( const Image *image, ExceptionInfo *exception ); Image * FlopImage( const Image *image, ExceptionInfo *exception ); Image * MosaicImages( const Image *image, ExceptionInfo *exception ); Image * RollImage( const Image *image, const long x_offset, const long y_offset, ExceptionInfo *exception ); Image * ShaveImage( const Image *image, const RectangleInfo *shave_info, ExceptionInfo *exception ); Image * SpliceImage( const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception ); MagickBooleanType TransformImage( Image ** image, const char *crop_geometry, const char *image_geometry ); MagickBooleanType TransformImages( Image ** image, const char *crop_geometry, const char *image_geometry ); Image * TrimImage( const Image *image, ExceptionInfo *exception );
FUNCTION DESCRIPTIONS
ChopImage
The format of the ChopImage method is: Image *ChopImage ( const Image *image, const RectangleInfo *chop_info ); ExceptionInfo *exception) A description of each parameter follows:
CoalesceImagesCoalesceImages() 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. CoalesceImages ( ) 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 CoalesceImages method is: Image *CoalesceImages ( const Image *image, ExceptionInfo *exception ); A description of each parameter follows:
CropImageUse CropImage() to extract a region of the image starting at the offset defined by geometry. The format of the CropImage method is: Image *CropImage ( const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception ); A description of each parameter follows:
DeconstructImagesDeconstructImages() 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 DeconstructImages method is: Image *DeconstructImages ( const Image *image, ExceptionInfo *exception ); A description of each parameter follows:
FlattenImageFlattenImage() merges a sequence of images. This is useful for combining Photoshop layers into a single image. The format of the FlattenImage method is: Image *FlattenImage ( const Image *image, ExceptionInfo *exception ); A description of each parameter follows:
FlipImageFlipImage() creates a vertical mirror image by reflecting the pixels around the central x-axis. The format of the FlipImage method is: Image *FlipImage ( const Image *image, ExceptionInfo *exception ); A description of each parameter follows:
FlopImageFlopImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis. The format of the FlopImage method is: Image *FlopImage ( const Image *image, ExceptionInfo *exception ); A description of each parameter follows:
MosaicImagesMosaicImages() inlays an image sequence to form a single coherent picture. It returns a single image with each image in the sequence composited at the location defined by the page member of the image structure. The format of the MosaicImage method is: Image *MosaicImages ( const Image *image, ExceptionInfo *exception ); A description of each parameter follows:
RollImageRollImage() offsets an image as defined by x_offset and y_offset. The format of the RollImage method is: Image *RollImage ( const Image *image, const long x_offset, const long y_offset, ExceptionInfo *exception ); A description of each parameter follows:
ShaveImageShaveImage() shaves pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. The format of the ShaveImage method is: Image *ShaveImage ( const Image *image, const RectangleInfo *shave_info, ExceptionInfo *exception ); A description of each parameter follows:
SpliceImageUse SpliceImage() to splice a solid color into the image as defined by the geometry. The format of the SpliceImage method is: Image *SpliceImage ( const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception ); A description of each parameter follows:
TransformImageTransformImage() is a convenience method that behaves like ResizeImage ( ) or CropImage ( ) but accepts scaling and/or cropping information as a region geometry specification. If the operation fails, the original image handle is returned. The format of the TransformImage method is: MagickBooleanType TransformImage ( Image **image, const char *crop_geometry, const char *image_geometry ); A description of each parameter follows:
TransformImagesTransformImages() calls TransformImage ( ) on each image of a sequence. The format of the TransformImage method is: MagickBooleanType TransformImages ( Image **image, const char *crop_geometry, const char *image_geometry ); A description of each parameter follows:
TrimImageTrimImage() trims pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. The format of the TrimImage method is: Image *TrimImage ( const Image *image, ExceptionInfo *exception ); A description of each parameter follows:
|