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)
42 lines (41 loc) • 1.21 kB
TypeScript
/** @format */
import { InputBuffer } from '../../common/input-buffer.js';
/**
* Represents a PSD image resource.
*/
export declare class PsdImageResource {
/**
* The unique identifier of the image resource.
*/
private _id;
/**
* Gets the unique identifier of the image resource.
* @returns {number} The unique identifier.
*/
get id(): number;
/**
* The name of the image resource.
*/
private _name;
/**
* Gets the name of the image resource.
* @returns {string} The name.
*/
get name(): string;
/**
* The data buffer of the image resource.
*/
private _data;
/**
* Gets the data buffer of the image resource.
* @returns {InputBuffer<Uint8Array>} The data buffer.
*/
get data(): InputBuffer<Uint8Array>;
/**
* Initializes a new instance of the PsdImageResource class.
* @param {number} id - The unique identifier of the image resource.
* @param {string} name - The name of the image resource.
* @param {InputBuffer<Uint8Array>} data - The data buffer of the image resource.
*/
constructor(id: number, name: string, data: InputBuffer<Uint8Array>);
}