UNPKG

@thi.ng/pixel

Version:

Typedarray integer & float pixel buffers w/ customizable formats, blitting, drawing, convolution

15 lines 860 B
import type { Maybe, TypedArray } from "@thi.ng/api"; import type { FloatFormat, IntFormat } from "./api.js"; /** @internal */ export declare const ensureSize: (data: TypedArray, width: number, height: number, stride?: number) => void; /** @internal */ export declare const ensureImageData: (data: Maybe<ImageData>, width: number, height: number) => ImageData; /** @internal */ export declare const ensureImageDataSize: (data: ImageData, width: number, height: number) => void; /** @internal */ export declare const ensureChannel: (fmt: IntFormat | FloatFormat, id: number) => import("./api.js").Lane | import("./api.js").IntChannel; /** @internal */ export declare const ensureSingleChannel: (fmt: IntFormat | FloatFormat) => void; /** @internal */ export declare const ensureAlpha: (fmt: IntFormat | FloatFormat) => void; //# sourceMappingURL=checks.d.ts.map