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)

62 lines (61 loc) 1.58 kB
/** @format */ import { InputBuffer } from '../../common/input-buffer.js'; import { GifColorMap } from './gif-color-map.js'; /** * Represents the description of a GIF image. */ export declare class GifImageDesc { /** * The x-coordinate of the image. */ private readonly _x; get x(): number; /** * The y-coordinate of the image. */ private readonly _y; get y(): number; /** * The width of the image. */ private readonly _width; get width(): number; /** * The height of the image. */ private readonly _height; get height(): number; /** * Indicates whether the image is interlaced. */ private readonly _interlaced; get interlaced(): boolean; /** * The color map of the image. */ private _colorMap?; get colorMap(): GifColorMap | undefined; set colorMap(v: GifColorMap | undefined); /** * The duration of the frame in milliseconds. */ private _duration; set duration(v: number); get duration(): number; /** * The disposal method of the frame. */ private _disposal; set disposal(v: number); get disposal(): number; /** * The position in the file after the ImageDesc for this frame. */ protected _inputPosition: number; get inputPosition(): number; /** * Initializes a new instance of the GifImageDesc class. * @param {InputBuffer<Uint8Array>} input - The input buffer containing the GIF image data. */ constructor(input: InputBuffer<Uint8Array>); }