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)
26 lines (25 loc) • 836 B
TypeScript
/** @format */
import { Encoder, EncoderEncodeOptions } from './encoder.js';
/**
* Class representing a BMP encoder.
* Implements the Encoder interface.
*/
export declare class BmpEncoder implements Encoder {
/**
* Indicates whether the encoder supports animation.
* @private
*/
private _supportsAnimation;
/**
* Gets the value indicating whether the encoder supports animation.
* @returns {boolean} True if the encoder supports animation; otherwise, false.
*/
get supportsAnimation(): boolean;
/**
* Encodes an image into BMP format.
* @param {EncoderEncodeOptions} opt - The options for encoding.
* @param {MemoryImage} opt.image - The image to encode.
* @returns {Uint8Array} The encoded BMP image.
*/
encode(opt: EncoderEncodeOptions): Uint8Array;
}