[Fixed] Canvas Image Fail

Just starting out? Need help? Post your questions and find answers here.
IdeasVacuum
Posts: 143
Joined: Tue Feb 25, 2014 1:27 pm

[Fixed] Canvas Image Fail

Post by IdeasVacuum »

Using PNG images via LoadImage():

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 
Is it the case that the images have to be a different format for the CanvasGadget()?

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