png-to-rgba
Version:
15 lines (14 loc) • 492 B
TypeScript
/// <reference types="node" />
export declare type RGBAarrType = [number, number, number, number][][];
declare function PNGToRGBAArray(data: Buffer): {
rgba: RGBAarrType;
width: number;
height: number;
png: import("pngjs").PNGWithMetadata;
};
declare function RGBAArrayToPNG(arr: RGBAarrType, opt?: import('pngjs').PNGOptions): Buffer;
declare const _default: {
PNGToRGBAArray: typeof PNGToRGBAArray;
RGBAArrayToPNG: typeof RGBAArrayToPNG;
};
export default _default;