Kodi Community Forum
controlImage colorkey - aargh pls help - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: controlImage colorkey - aargh pls help (/showthread.php?tid=3552)



- carlosp_uk - 2004-05-14

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


- carlosp_uk - 2004-05-14

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-21

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!