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)

84 lines (83 loc) 2.43 kB
/** @format */ import { InputBuffer } from '../../common/input-buffer.js'; /** * Represents a JPEG JFIF (JPEG File Interchange Format) structure. */ export declare class JpegJfif { /** * The width of the thumbnail image. */ private _thumbWidth; /** * Gets the width of the thumbnail image. */ get thumbWidth(): number; /** * The height of the thumbnail image. */ private _thumbHeight; /** * Gets the height of the thumbnail image. */ get thumbHeight(): number; /** * The major version of the JFIF standard. */ private _majorVersion; /** * Gets the major version of the JFIF standard. */ get majorVersion(): number; /** * The minor version of the JFIF standard. */ private _minorVersion; /** * Gets the minor version of the JFIF standard. */ get minorVersion(): number; /** * The units used for pixel density. */ private _densityUnits; /** * Gets the units used for pixel density. */ get densityUnits(): number; /** * The horizontal pixel density. */ private _xDensity; /** * Gets the horizontal pixel density. */ get xDensity(): number; /** * The vertical pixel density. */ private _yDensity; /** * Gets the vertical pixel density. */ get yDensity(): number; /** * The thumbnail image data. */ private _thumbData; /** * Gets the thumbnail image data. */ get thumbData(): InputBuffer<Uint8Array>; /** * Initializes a new instance of the JpegJfif class. * @param {number} thumbWidth - The width of the thumbnail image. * @param {number} thumbHeight - The height of the thumbnail image. * @param {number} majorVersion - The major version of the JFIF standard. * @param {number} minorVersion - The minor version of the JFIF standard. * @param {number} densityUnits - The units used for pixel density. * @param {number} xDensity - The horizontal pixel density. * @param {number} yDensity - The vertical pixel density. * @param {InputBuffer<Uint8Array>} thumbData - The thumbnail image data. */ constructor(thumbWidth: number, thumbHeight: number, majorVersion: number, minorVersion: number, densityUnits: number, xDensity: number, yDensity: number, thumbData: InputBuffer<Uint8Array>); }