string getImageFileCommand(string filepath, int maxWidth, bool compressionEnable)
This function can be used to return a draw image command.
Parameters
Name | Description |
filepath | File path to the image on the device. |
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.