image-js
Version:
Image processing and manipulation in JavaScript
30 lines • 887 B
TypeScript
import { Image } from '../Image.js';
import type { BorderType } from '../utils/interpolateBorder.js';
export interface ExtendBordersOptions {
/**
* Left and right border thickness.
*/
horizontal: number;
/**
*Top and bottom border thickness.
*/
vertical: number;
/**
* Specify how the borders should be handled.
* @default `'reflect101'`
*/
borderType?: BorderType;
/**
* Value of the border if BorderType is 'constant'.
* @default `0`
*/
borderValue?: number | number[];
}
/**
* Extend the borders of an image according to the given border type.
* @param image - Image to extend.
* @param options - Options.
* @returns A copy of the image with extended borders.
*/
export declare function extendBorders(image: Image, options: ExtendBordersOptions): Image;
//# sourceMappingURL=extendBorders.d.ts.map