ImageJS
    Preparing search index...

    Interface ResizeOptions

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

    Properties

    borderType?: BorderType

    Specify how the borders should be handled.

    'constant'

    borderValue?: number

    Value of the border if BorderType is 'constant'.

    0

    height?: number

    Height of the output image.

    interpolationType?: InterpolationType

    Method to use to interpolate the new pixels.

    'bilinear'

    preserveAspectRatio?: boolean

    Whether the aspect ratio of the image should be preserved.

    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.