Image.distort

Distort an image using the specified distortion type and its required arguments. This method is equivalent to ImageMagick's -distort option.

class Image
void
distort
(
,
double[] arguments
,
bool bestfit = false
)

Parameters

method

Distortion method to use.

arguments
Type: double[]

An array of numbers. The size of the array depends on the distortion type.

bestfit
Type: bool

If enabled, and the 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.

Meta