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 DistortImageMethod

Distortion method to use.

arguments double[]

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

bestfit 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