generationPixelImage(params: Object)
Requires:
AIKit≥1.8.0@ray-js/ray≥1.7.60
Platforms:
iOSAndroid
Description
Generate a pixel image from tags
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | Device ID |
label | string | Yes | Tag |
imageWidth | number | Yes | Width of the generated image |
imageHeight | number | Yes | Height of the generated image |
outImagePath | string | Yes | Image output directory |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description |
|---|---|---|
success | boolean | Whether generation succeeded |
imagePath | string | Path to the generated pixel image |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None