Code: Select all
ImageGadget(#MyImg, 0, 0, 48, 48, ImageID(#Img)) ;Always Works
CanvasGadget(#MyCnv, 0, 0, 48, 48)
SetGadgetAttribute(#MyCnv, #PB_Canvas_Image, ImageID(#Img)) ;Never Works
Although ImageGadget() works perfectly, I have 66 small images on display (5 images, some displayed many times) so I am looking for optimisation. My thoughts are that since the Canvas Gadgets use a copy of the original image, they might be more efficient than an Image Gadgets - if only I could get them to work!
Edit: I should have mentioned that it works fine in PB.
Edit: whoops - fixed in SB 2.1