image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
23 lines (22 loc) • 610 B
TypeScript
/** @format */
/**
* Enumeration representing different interpolation methods for resizing images.
*/
export declare enum Interpolation {
/**
* Selects the closest pixel. Fastest method with the lowest quality.
*/
nearest = 0,
/**
* Linearly blends between the neighboring pixels. Moderate speed and quality.
*/
linear = 1,
/**
* Uses cubic interpolation between neighboring pixels. Slowest method with the highest quality.
*/
cubic = 2,
/**
* Averages the colors of the neighboring pixels. Balanced speed and quality.
*/
average = 3
}