Depends what exactly you're trying to do. You can attach DataTypes objects to windows (or via bitmap.image), so if it's a pure display then that's likely the easiest method.AmiHyperion wrote:So, what is the best way to load a 32 bit png (with alhpa) and display it on a window?
Loading 32-bit PNG with datatypes
Re: Loading 32-bit PNG with datatypes
-
- Posts: 28
- Joined: Tue Aug 30, 2011 8:26 am
Re: Loading 32-bit PNG with datatypes
I attached via DataTypes, P96 and BitBlt.
Now the problem is that if i resize the window the image disappear
Now the problem is that if i resize the window the image disappear
Re: Loading 32-bit PNG with datatypes
If you're blitting it to the window then the chances are resizing the window is wiping the contents.AmiHyperion wrote:I attached via DataTypes, P96 and BitBlt.
Now the problem is that if i resize the window the image disappear
You'll need to catch IDCMP_NEWSIZE events and re-blit it on resizing.
If you attach the object to the gadget list, it will handle this for you.