UNPKG

@alttiri/image-hash

Version:

Alt-Image-Hash. An alternative image hashing library.

19 lines (18 loc) 752 B
import { ImageDataLikeEx } from "./types.js"; /** ImageData fot only one channel (luminance). */ export declare class MonoImageData implements ImageDataLikeEx { readonly data: Uint8Array; readonly width: number; readonly height: number; readonly channels: 1; constructor(data: Uint8Array, width: number, height: number); newInstance<T extends MonoImageData>(data: Uint8Array, width: number, height: number): T; } /** "binary"/"black-white" image pixels (`0` and `255` values) */ export declare class BiImageData extends MonoImageData { readonly type = "binary"; } /** "gray-scaled" image pixels (values from `0` up to `255`) */ export declare class GrayImageData extends MonoImageData { readonly type = "gray-scaled"; }