![purebasic image types for button image gadget purebasic image types for button image gadget](https://www.codeproject.com/KB/Tools-IDE/853831/gui1-r-700.png)
If OpenWindow(#frmTest, 50, 50, 150, 50, "Icon Test", #PB_Window_SystemMenu|#PB_Window_TitleBar|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered) Gtk_window_set_icon(WindowID(iWindow), lPixbuf) LPixbuf.l = gdk_pixbuf_from_pixdata(mIcon, #False, lError.l) (and why does the transparency work fine with 8/24-bit PNG in the IDE - just not the compiled ELF?) Are there any plans to support 8 and 24? Especially as all I need is small images for buttons, 32-bit is unnecessarily bloated and visually virtually no different compared to 24-bit while letting me keep filesize to a minimum.
![purebasic image types for button image gadget purebasic image types for button image gadget](https://shots.jotform.com/jimr/~uploads/2016-12-11_05.35.30.png)
![purebasic image types for button image gadget purebasic image types for button image gadget](https://ultimateelementor.com/wp-content/uploads/2019/08/uae-marketing-button-general-tab.png)
I couldn't see any mention in the helpfile btw, the UsePNGDecoder() page doesn't even mention bits, and the LoadImage() page is very vague about alpha channel and doesn't specify that PNG need to be 32bit.Īlso, the 8-bit and 24-bit PNGs display transparency correctly on Windows and Mac (both IDE + compiled), and in Linux (in IDE), which is why i assumed it's just a Linux-only bugĪctually the helpfile's one and only mention of 32-bit confused me into thinking it was for 32-bit bitmap-with-alpha-channel support, but 32-bit BMP doesn't appear to be supported by Purebasic (it displays but the transparency isn't rendered).īoth 8-bit and 24-bit PNG support transparency at much smaller filesize, why only support 32-bit? I hadnt even tried 32bit as my Photoshop only exports 8 and 24. You need to use a 32 bit PNG if you want transparency.