PDA

View Full Version : controlImage colorkey - aargh pls help


carlosp_uk
2004-05-14, 16:51
hi,

i'm working on the new tivoguide which gets png channel logos from the tivo. *

i need to set a colorkey so that magenta (r255, g0, b255) becomes transparent. *i've tried:


* * * * * * * * * *self.chanlogo = xbmcgui.controlimage(300,70, 65, 65, logofn, '0x00ff00ff')
* * * * * * * * * *self.addcontrol(self.chanlogo)


...but i don't really know anything about hex, and this doesn't work. *(see screenshot below)

is 0x00ff00ff correct? *0xff00ff doesn't work either. *or 0xff00ff00

carlos

http://www.fatattitude.com/images/tivo/tempss1.jpg

carlosp_uk
2004-05-14, 22:47
ok, it took me all day to find out on the internet, but it's of the format

0xwwbbggrr

where ww is white, b is blue, g is green and r is red

zilvershadow
2004-05-22, 00:56
i was told that is is 0xaarrggbb where aa stands for the alpha channel. but i also have problems with 8 bit alpha gif images. i've posted several times and trying to find out for days.
please help! will be much apreciated!