image-js
Version:
Image processing and manipulation in JavaScript
17 lines • 864 B
TypeScript
import type { Image } from '../Image.js';
import type { BorderInterpolationFunction, ClampFunction } from './utils.types.js';
export declare const InterpolationType: {
readonly NEAREST: "nearest";
readonly BILINEAR: "bilinear";
readonly BICUBIC: "bicubic";
};
export type InterpolationType = (typeof InterpolationType)[keyof typeof InterpolationType];
type InterpolationFunction = (image: Image, column: number, row: number, channel: number, interpolateBorder: BorderInterpolationFunction, clamp: ClampFunction) => number;
/**
* Get the interpolation function based on its name.
* @param interpolationType - Specified interpolation type.
* @returns The interpolation function.
*/
export declare function getInterpolationFunction(interpolationType: InterpolationType): InterpolationFunction;
export {};
//# sourceMappingURL=interpolatePixel.d.ts.map