/** * Resize */ import { Filter, IShaderInfo } from '../core/Filter'; import { Image } from '../core/Image'; /** * Resizes images */ export declare class Resize extends Filter { protected shaders: IShaderInfo[]; /** * Create a new instance of the resize filter. This will allocate * resources required to perform the resize operation. */ constructor(); /** * Extract the region at (xIn, yIn) with width wIn and height hIn * from the input image and resize it to width wOut and height hOut. * * @param image Input image * @param xIn X position in input image to extract * @param yIn Y position in input image to extract * @param wIn Width of region to extract from input image * @param hIn Height of region to extract from input image * @param wOut Width of the destination image * @param hOut Height of the destination image * * @return Cropped and resized image */ cropAndResize(image: Image, xIn: number, yIn: number, wIn: number, hIn: number, wOut: number, hOut: number): Image; /** * Resize the input image to the specified dimensions. * * @param image The image to resize. * @param width Width of the output image * @param height Height of the output image * * @return Resized image */ resize(image: Image, width: number, height: number): Image; }