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)
71 lines (70 loc) • 1.96 kB
TypeScript
/** @format */
import { Color } from '../../color/color.js';
import { DecodeInfo } from '../decode-info.js';
import { PnmFormat } from './pnm-format.js';
/**
* Class representing PNM (Portable Any Map) image information.
* Implements the DecodeInfo interface.
*/
export declare class PnmInfo implements DecodeInfo {
/**
* The width of the image canvas.
*/
private _width;
/**
* Gets the width of the image canvas.
* @returns {number} The width of the image canvas.
*/
get width(): number;
/**
* Sets the width of the image canvas.
* @param {number} v - The width of the image canvas.
*/
set width(v: number);
/**
* The height of the image canvas.
*/
private _height;
/**
* Sets the height of the image canvas.
* @param {number} v - The height of the image canvas.
*/
set height(v: number);
/**
* Gets the height of the image canvas.
* @returns {number} The height of the image canvas.
*/
get height(): number;
/**
* The suggested background color of the canvas.
*/
private _backgroundColor;
/**
* Gets the suggested background color of the canvas.
* @returns {Color | undefined} The background color of the canvas.
*/
get backgroundColor(): Color | undefined;
/**
* The number of frames that can be decoded.
*/
private _numFrames;
/**
* Gets the number of frames that can be decoded.
* @returns {number} The number of frames.
*/
get numFrames(): number;
/**
* The format of the PNM image.
*/
private _format;
/**
* Gets the format of the PNM image.
* @returns {PnmFormat} The format of the PNM image.
*/
get format(): PnmFormat;
/**
* Initializes a new instance of the PnmInfo class.
* @param {PnmFormat} format - The format of the PNM image.
*/
constructor(format: PnmFormat);
}