ARGB Format
Blitz3D Forums/Blitz3D Programming/ARGB Format
| ||
Hi I use BlitzUI, and to make new icon we need to create an icon data which contain the ARGB format of the icon. I want to know what is exactly this format to perform readpixel on it. THX |
| ||
Maybe I wasn't clear!!! My english is bad. In fact, I just want to know how to make icon with BlitzUI. Please answer me!! |
| ||
Nobody seems to know it. I can tell you only what's ARGB. It's 32 Bit, 4 Bytes: 8 Bit for Alpha-Transparency 8 Bit Red 8 Bit Green 8 Bit blue Example: $70FF55FF _A_R_G_B would be a semi-transparent pink. or $00FF0000 would be fully transparent Red (useless) or $FF0000FF would be fully opaque Blue. |
| ||
actually, blitzUI uses 255,0,0 as its image mask for icons. since blitz images don't support alpha, you have to use the mask color. so, just use 255,0,0 as the color wherever you want it to be transparent. this doesn't mean you can't have pure red in your icons; you can use 254,0,0 and it'll look practically the same, but it won't be made transparent. |
| ||
> you can use 254,0,0 and it'll look practically the same thats not entirely true. Blitz is not very acurate with masking out very specific RGB values. it tends to mask out a small range around the rgb values you specify. |
| ||
"Blitz is not very acurate with masking out very specific RGB values" i thought it was :| oh well. 245,0,0 it is, then. |