zpl-image-modern
Version:
Modern ZPL image conversion library supporting both browser and Node.js environments
13 lines • 595 B
TypeScript
import { type ZplImageOptions, type ZplImageResult } from "./core";
/**
* 将 RGBA 像素数据转换为 Z64 压缩格式的 ZPL。
* Node.js 环境使用原生 zlib 进行压缩。
* @param rgba - Buffer (来自 Node.js 图像处理库)
* @param width - 图像宽度
* @param opts - 配置选项
* @returns 包含 ZPL 数据的对象
*/
export declare function rgbaToZ64(rgba: Buffer, width: number, opts?: ZplImageOptions): ZplImageResult;
export type { ZplRotation, ZplImageOptions, ZplImageResult } from "./core";
export { rgbaToACS } from "./core";
//# sourceMappingURL=node.d.ts.map