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)

46 lines (45 loc) 1.46 kB
/** @format */ /** Enumeration representing different IFD value types */ export declare enum IfdValueType { /** No value type */ none = 0, /** Byte value type */ byte = 1, /** ASCII value type */ ascii = 2, /** Short value type */ short = 3, /** Long value type */ long = 4, /** Rational value type */ rational = 5, /** Signed byte value type */ sByte = 6, /** Undefined value type */ undefined = 7, /** Signed short value type */ sShort = 8, /** Signed long value type */ sLong = 9, /** Signed rational value type */ sRational = 10, /** Single precision floating point value type */ single = 11, /** Double precision floating point value type */ double = 12 } /** Array representing the size of each IFD value type */ export declare const IfdValueTypeSize: number[]; /** * Function to get the string representation of an IFD value type * @param {IfdValueType} type - The IFD value type * @returns {string} The string representation of the IFD value type */ export declare function getIfdValueTypeString(type: IfdValueType): string; /** * Function to get the size of an IFD value type * @param {IfdValueType} type - The IFD value type * @param {number} [length=1] - The length multiplier (default is 1) * @returns {number} The size of the IFD value type */ export declare function getIfdValueTypeSize(type: IfdValueType, length?: number): number;