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)
21 lines (20 loc) • 591 B
TypeScript
/** @format */
/**
* Enum representing different modes for trimming an image.
*/
export declare enum TrimMode {
/**
* Trim an image to the top-left and bottom-right most non-transparent pixels.
*/
transparent = 0,
/**
* Trim an image to the top-left and bottom-right most pixels that are not
* the same as the top-left most pixel of the image.
*/
topLeftColor = 1,
/**
* Trim an image to the top-left and bottom-right most pixels that are not
* the same as the bottom-right most pixel of the image.
*/
bottomRightColor = 2
}