transform - Methods to Transform an Image
Image * ChopImage( Image *image, const RectangleInfo *chop_info );
Image * CoalesceImages( Image *image, ExceptionInfo *exception );
Image * CropImage( Image *image, const RectangleInfo *crop_info, ExceptionInfo *exception );
Image * DeconstructImages( Image *image, ExceptionInfo *exception );
Image * FlipImage( Image *image, ExceptionInfo *exception );
Image * FlopImage( Image *image, ExceptionInfo *exception );
unsigned int ProfileImage( Image *image, const char *profile_name, const char *filename );
Image * RollImage( Image *image, const int x_offset, const int y_offset, ExceptionInfo *exception );
void TransformImage( Image ** image, const char *crop_geometry, const char *image_geometry );
Method ChopImage creates a new image that is a subregion of an existing one. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the ChopImage method is:
Image *ChopImage ( Image *image, const RectangleInfo *chop_info );
ExceptionInfo *exception)
A description of each parameter follows:
Method CoalesceImages merges a sequence of images. This is useful for GIF and MNG animation sequences that have page offsets and disposal methods.
The format of the CoalesceImages method is:
Image *CoalesceImages ( Image *image, ExceptionInfo *exception );
A description of each parameter follows:
Method CropImage creates a new image that is a subregion of an existing one. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. This method is optimized to preserve the runlength encoding. That is, the crop image will always use less memory than the original.
The format of the CropImage method is:
Image *CropImage ( Image *image, const RectangleInfo *crop_info, ExceptionInfo *exception );
A description of each parameter follows:
Method DeconstructImages breaks down an image sequence into constituent parts. This is useful for creating GIF or MNG animation sequences.
The format of the DeconstructImages method is:
Image *DeconstructImages ( Image *image, ExceptionInfo *exception );
A description of each parameter follows:
Method FlipImage creates a new image that reflects each scanline in the vertical direction It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the FlipImage method is:
Image *FlipImage ( Image *image, ExceptionInfo *exception );
A description of each parameter follows:
Method FlopImage creates a new image that reflects each scanline in the horizontal direction It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the FlopImage method is:
Image *FlopImage ( Image *image, ExceptionInfo *exception );
A description of each parameter follows:
Method ProfileImage removes or adds a ICM, IPTC, or generic profile to an image. If the profile name is specified it is deleted from the image. If a filename is specified, one or more profiles are read and added to the image.
The format of the ProfileImage method is:
unsigned int ProfileImage ( Image *image, const char *profile_name, const char *filename );
A description of each parameter follows:
Method RollImage rolls an image vertically and horizontally. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the RollImage method is:
Image *RollImage ( Image *image, const int x_offset, const int y_offset, ExceptionInfo *exception );
A description of each parameter follows:
Method TransformImage creates a new image that is a transformed size of of existing one as specified by the crop and image geometries. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
If a crop geometry is specified a subregion of the image is obtained. If the specified image size, as defined by the image and scale geometries, is smaller than the actual image size, the image is first minified to an integral of the specified image size with an antialias digital filter. The image is then scaled to the exact specified image size with pixel replication. If the specified image size is greater than the actual image size, the image is first enlarged to an integral of the specified image size with bilinear interpolation. The image is then scaled to the exact specified image size with pixel replication.
The format of the TransformImage method is:
void TransformImage ( Image **image, const char *crop_geometry, const char *image_geometry );
A description of each parameter follows: