I'm trying to create a simple rollout with a bitmap image for a button, but the image needs to use its alpha channel as the mask. The problem is while it's easy to get the bitmap I can't figure out how to use the alpha in it.
This is what I'm doing:
rollout image_button_test "Image Button" width:150 height:100 (<br> local iconDir = (getDir #UI_ln) + "Icons"<br> local theBitmap = openBitMap (iconDir + "\EditMesh_24i.bmp")<br> local theAlpha = ???<br> button theButton "btn" pos:[25,29] width:24 height:24 images:#(theBitmap, theAlpha, 10, 2, 7, 1, 1)<br>)<br>createdialog image_button_test
I thought I could just do something like "theBitmap.a" or "theBitmap.alpha" but no such luck.
Anyone know how to go about getting the alpha from the image so it can be used as a mask?
Replies