Graphics drawImage - possible to use images from the image browser?

Pretty simple - is there some way to get ahold of the images seen in the image browser and use them in something like the Paintable Canvas?

You want the ImageLoader class. Usage would be something like:

from com.inductiveautomation.ignition.client.images import ImageLoader
myImage = ImageLoader.getInstance().loadImage("path/to/image.png") #java Image class
myImageBytes = ImageLoader.getInstance().loadBytes("path/to/image.png") #byte array of image data
3 Likes

Great! I knew it had to be something like that.