AffineTransformImage • DistortImage • RotateImage • SparseColorImage
AffineTransformImage() transforms an image as dictated by the affine matrix. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the AffineTransformImage method is:
Image *AffineTransformImage(const Image *image, AffineMatrix *affine_matrix,ExceptionInfo *exception)
A description of each parameter follows:
DistortImage() distorts an image using various distortion methods, by mapping color lookups of the source image to a new destination image usally of the same size as the source image, unless 'bestfit' is set to true.
If 'bestfit' is enabled, and distortion allows it, the destination image is adjusted to ensure the whole source 'image' will just fit within the final destination image, which will be sized and offset accordingly. Also in many cases the virtual offset of the source image will be taken into account in the mapping.
If the '-verbose' control option has been set print to standard error the equicelent '-fx' formula with coefficients for the function, if practical.
The format of the DistortImage() method is:
Image *DistortImage(const Image *image,const DistortMethod method, const size_t number_arguments,const double *arguments, MagickBooleanType bestfit, ExceptionInfo *exception)
A description of each parameter follows:
RotateImage() creates a new image that is a rotated copy of an existing one. Positive angles rotate counter-clockwise (right-hand rule), while negative angles rotate clockwise. Rotated images are usually larger than the originals and have 'empty' triangular corners. X axis. Empty triangles left over from shearing the image are filled with the background color defined by member 'background_color' of the image. RotateImage allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the RotateImage method is:
Image *RotateImage(const Image *image,const double degrees, ExceptionInfo *exception)
A description of each parameter follows.
the image.
Specifies the number of degrees to rotate the image.
return any errors or warnings in this structure.
SparseColorImage(), given a set of coordinates, interpolates the colors found at those coordinates, across the whole image, using various methods.
The format of the SparseColorImage() method is:
Image *SparseColorImage(const Image *image, const SparseColorMethod method,const size_t number_arguments, const double *arguments,ExceptionInfo *exception)
A description of each parameter follows: