Interface ResizeOptions

interface ResizeOptions {
    borderType?: BorderType;
    borderValue?: number;
    height?: number;
    interpolationType?: InterpolationType;
    preserveAspectRatio?: boolean;
    width?: number;
    xFactor?: number;
    yFactor?: number;
}

Properties

borderType?: BorderType

Specify how the borders should be handled.

Default

'constant'

borderValue?: number

Value of the border if BorderType is 'constant'.

Default

0

height?: number

Height of the output image.

interpolationType?: InterpolationType

Method to use to interpolate the new pixels.

Default

'bilinear'

preserveAspectRatio?: boolean

Whether the aspect ratio of the image should be preserved.

Default

true

width?: number

Width of the output image.

xFactor?: number

Factor by which to scale the width.

yFactor?: number

Factor by which to scale the width.