XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-05-14, 16:51   #1
carlosp_uk
Member
 
Join Date: Apr 2004
Posts: 47
carlosp_uk is on a distinguished road
Default

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

carlosp_uk is offline   Reply With Quote
Old 2004-05-14, 22:47   #2
carlosp_uk
Member
 
Join Date: Apr 2004
Posts: 47
carlosp_uk is on a distinguished road
Default

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
carlosp_uk is offline   Reply With Quote
Old 2004-05-22, 00:56   #3
zilvershadow
Senior Member
 
Join Date: Oct 2003
Location: Netherlands
Posts: 136
zilvershadow is on a distinguished road
Default

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.
zilvershadow is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python and Gif images ignore colorkey. Nuka1195 XBMC for Xbox Specific Support 0 2006-05-25 00:44
Expose ControlImage AspectRatio Posh Plugin/Script (Python) Development 21 2006-05-24 22:40
Aargh, what have i done ? sumodl XBMC for Xbox Specific Support 3 2005-06-28 00:52
Python ControlImage ColorKey zilvershadow XBMC for Xbox Specific Support 0 2004-05-22 13:47
controlImage dwe_3 Plugin/Script (Python) Development 0 2004-04-25 07:11


All times are GMT +2. The time now is 15:31.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project