string getBase64ImageCommand(string base64, int maxWidth, bool compressionEnable)
This function can be used to return a draw image command.
Parameters
Name | Description |
base64 | Image encoded in base 64. Note: Do not include data:image/png;base64, in the string. |
maxWidth | Maximum number of pixels the image can be. Image will be scaled if it exceeds this. |
compressionEnable | Enables compression. |
Return
A JSON byte array to use as a command.