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)
70 lines (69 loc) • 1.81 kB
TypeScript
/** @format */
import { Color } from '../../color/color.js';
import { DecodeInfo } from '../decode-info.js';
/**
* Class representing JPEG information.
* Implements the DecodeInfo interface.
*/
export declare class JpegInfo implements DecodeInfo {
/**
* Width of the JPEG image.
* @private
*/
private _width;
/**
* Gets the width of the JPEG image.
* @returns {number} The width of the image.
*/
get width(): number;
/**
* Height of the JPEG image.
* @private
*/
private _height;
/**
* Gets the height of the JPEG image.
* @returns {number} The height of the image.
*/
get height(): number;
/**
* Number of frames in the JPEG image.
* @private
*/
private _numFrames;
/**
* Gets the number of frames in the JPEG image.
* @returns {number} The number of frames.
*/
get numFrames(): number;
/**
* Background color of the JPEG image.
* @private
*/
private _backgroundColor;
/**
* Gets the background color of the JPEG image.
* @returns {Color | undefined} The background color of the image.
*/
get backgroundColor(): Color | undefined;
/**
* The number of components in the image
* @private
*/
private _numComponents;
/**
* Gets the number of components in the image
* @returns {number} The number of components in the image
*/
get numComponents(): number;
/**
* Sets the number of components in the image
*/
set numComponents(v: number);
/**
* Sets the size of the JPEG image.
* @param {number} width - The width of the image.
* @param {number} height - The height of the image.
*/
setSize(width: number, height: number): void;
}