image-js
Version:
Image processing and manipulation in JavaScript
24 lines • 598 B
TypeScript
import type { Image } from '../Image.js';
export interface PixelateOptions {
/**
* Range of pixelated area.
*/
cellSize: number;
/**
* algorithm to use.
* @default `'center'`
*/
algorithm?: 'center' | 'median' | 'mean';
/**
* Image to which to output.
*/
out?: Image;
}
/**
* Function to pixelate an image.
* @param image - Image to be pixelated.
* @param options - PixelateOptions.
* @returns Pixelated Image.
*/
export declare function pixelate(image: Image, options: PixelateOptions): Image;
//# sourceMappingURL=pixelate.d.ts.map