Interface RotateOptions

Options of Image.rotate

interface RotateOptions {
    fast?: boolean;
    resize?: boolean;
}

Properties

Properties

fast?: boolean

Whether to sample with 8-bit weights on 8-bit premultiplied pixels (like ResizeOptions.fast), about twice as fast: opaque pixels stay within a step of the precise result, what shows of translucent ones (also the faded edges) within about 2.5 steps (pixels that are almost transparent keep less of their color). Only affects angles that aren't multiples of 90°. Default: true

resize?: boolean

Whether to resize the image so it fits all pixels or just ignore outlying pixels. Default: true