Home > PCB_MathPolygon > convertImageToComplexPolygon
PCB_MathPolygon.convertImageToComplexPolygon() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
将图像转换为复杂多边形对象
Signature
typescript
convertImageToComplexPolygon(imageBlob: Blob, imageWidth: number, imageHeight: number, tolerance?: number, simplification?: number, smoothing?: number, despeckling?: number, inversion?: boolean): Promise<IPCB_ComplexPolygon | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
imageBlob | Blob | 图像 Blob 文件,可以使用 SYS_FileSystem.openReadFileDialog() 方法从文件系统读取文件 |
imageWidth | number | 图像宽度 |
imageHeight | number | 图像高度 |
tolerance | number | (Optional) 容差,取值范围 |
simplification | number | (Optional) 简化,取值范围 |
smoothing | number | (Optional) 平滑,取值范围 |
despeckling | number | (Optional) 去斑,取值范围 |
inversion | boolean | (Optional) 是否反相 |
Returns
Promise<IPCB_ComplexPolygon | undefined>
复杂多边形对象