controlImage colorkey - aargh pls help
#1
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:

Quote:                    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

Image
Reply
#2
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
Reply
#3
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!
greets,

zilvershadow
designer of the kmlbrowser script.
Reply

Logout Mark Read Team Forum Stats Members Help
controlImage colorkey - aargh pls help0