API / imgsplit
函数: imgsplit()
调用签名
ts
function imgsplit(imgurl: string, height?: number): Promise<OuputDataType[]>;图片分割
参数
| 参数 | 类型 | 描述 |
|---|---|---|
imgurl | string | 图片地址 |
height? | number | 分割高度 |
返回
Promise<OuputDataType[]>
调用签名
ts
function imgsplit(buffer: Buffer, height?: number): Promise<OuputDataType[]>;图片分割
参数
| 参数 | 类型 | 描述 |
|---|---|---|
buffer | Buffer | buffer |
height? | number | 分割高度 |
返回
Promise<OuputDataType[]>
调用签名
ts
function imgsplit(options: ImgSplitOption): Promise<OuputDataType[]>;图片分割
参数
| 参数 | 类型 | 描述 |
|---|---|---|
options | ImgSplitOption | 选项 |
返回
Promise<OuputDataType[]>
