UNPKG

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)

25 lines (24 loc) 854 B
/** @format */ import { Encoder, EncoderEncodeOptions } from './encoder.js'; /** * Encode a TGA image. This only supports the 24-bit uncompressed format. */ export declare class TgaEncoder 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 the given image into a TGA format. * @param {EncoderEncodeOptions} opt - The options for encoding. * @param {MemoryImage} opt.image - The image to encode. * @returns {Uint8Array} The encoded image in TGA format. */ encode(opt: EncoderEncodeOptions): Uint8Array; }