
I used the visual designer to create my interface. On it are several image gadgets set up via the vd in the usual way, ie, a constant, a global, catch the image from included binary, create an image gadget using the global for the image ID. Images are .png's and appear fine. Now I want to draw on the image and update the gadget (similar to what Fred suggests for drawing on an apps window). So I should be able to do the following right? But it always comes back with an error "#Image object not initialized".
Code: Select all
...
myImageID = GetGadgetState(myGadgetID)
StartDrawing(ImageOutput(myImageID))
Line(0,0,15,15)
StopDrawing()
...