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)
63 lines (62 loc) • 2.08 kB
TypeScript
/** @format */
import { IccProfileCompression } from './icc-profile-compression.js';
/**
* ICC Profile data stored with an image.
*/
export declare class IccProfile {
/**
* The name of the ICC Profile.
*/
private _name;
/**
* Gets the name of the ICC Profile.
* @returns {string} The name of the ICC Profile.
*/
get name(): string;
/**
* The compression type of the ICC Profile data.
*/
private _compression;
/**
* Gets the compression type of the ICC Profile data.
* @returns {IccProfileCompression} The compression type.
*/
get compression(): IccProfileCompression;
/**
* The raw data of the ICC Profile.
*/
private _data;
/**
* Gets the raw data of the ICC Profile.
* @returns {Uint8Array} The raw data.
*/
get data(): Uint8Array;
/**
* Constructs a new IccProfile instance.
* @param {string} name - The name of the ICC Profile.
* @param {IccProfileCompression} compression - The compression type of the ICC Profile data.
* @param {Uint8Array} data - The raw data of the ICC Profile.
*/
constructor(name: string, compression: IccProfileCompression, data: Uint8Array);
/**
* Creates a new IccProfile instance from an existing one.
* @param {IccProfile} other - The existing IccProfile instance.
* @returns {IccProfile} A new IccProfile instance.
*/
static from(other: IccProfile): IccProfile;
/**
* Returns the compressed data of the ICC Profile, compressing the stored data as necessary.
* @returns {Uint8Array} The compressed data.
*/
compressed(): Uint8Array;
/**
* Returns the uncompressed data of the ICC Profile, decompressing the stored data as necessary.
* @returns {Uint8Array} The uncompressed data.
*/
decompressed(): Uint8Array;
/**
* Creates a deep copy of the current IccProfile instance.
* @returns {IccProfile} A new IccProfile instance that is a copy of the current instance.
*/
clone(): IccProfile;
}