image garbled

BlitzMax Forums/BlitzMax Beginners Area/image garbled

CS_TBL(Posted 2005) [#1]
hm. perhaps not everyone browses the bugreports..

again then here in the beginners-section..


Question is: why are the buttons garbled? The words on the buttons should be deep-black, not half noisy-grey .. see the bmp's..

download it @ http://www.blitzbasic.co.nz/Community/posts.php?topic=54329


Azathoth(Posted 2005) [#2]
It seems to be MASKEDIMAGE doing it. Using LoadImage with a flag of 0 or FILTEREDIMAGE seems to get it working properly, but using AutoImageFlags doesn't seem to affect it.

Edit: Something keeps resetting the AutoImageFlags, it works for the images loaded straight after AutoImageFlags, but something in MaxGui I think resets it back to default.


CS_TBL(Posted 2005) [#3]
AutoImageFlags(0) works!

but only when you place it behind a line like this:

a.G_msx2pal.Add CreateIButton(336,20,"2",a.IMG_button_3,a.msx2panel,0)

(something like this ... I picked this one from my newer source, but there's equal stuff in the rar)

The CreateIButton does 2 'shocking' things: create a canvas, and 'SetBlend SOLIDBLEND' upon gadgetpaint.. prolly one of them causes the AutoImageFlags to reset orso..