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-04-28, 09:47   #1
zilvershadow
Senior Member
 
Join Date: Oct 2003
Location: Netherlands
Posts: 136
zilvershadow is on a distinguished road
Default

how do i get the image sizes (width, height)?
how can i draw transparent images (gif) or set a color to be transparent.
or if it's not supported in xbmc.. i would like to have support for it. thanks

thanks for your help.
__________________
greets,

zilvershadow
designer of the kmlbrowser script.
zilvershadow is offline   Reply With Quote
Old 2004-04-29, 16:06   #2
zilvershadow
Senior Member
 
Join Date: Oct 2003
Location: Netherlands
Posts: 136
zilvershadow is on a distinguished road
Default

i have some gif images which are 256 alpha colored so some colors in the palet are transparent. how can i draw these images to the screen so they are transparent ofcourse?

thanks in advance
__________________
greets,

zilvershadow
designer of the kmlbrowser script.
zilvershadow is offline   Reply With Quote
Old 2004-05-01, 18:01   #3
alx5962
Senior Member
 
Join Date: Jan 2004
Posts: 174
alx5962 is on a distinguished road
Default

you have to read the image file as binary and decode it to know the size. python xbox has no library to manage/handle images.

about transparency you can define the alpha channel with xbmcgui when you display an image.
alx5962 is offline   Reply With Quote
Old 2004-05-01, 20:04   #4
zilvershadow
Senior Member
 
Join Date: Oct 2003
Location: Netherlands
Posts: 136
zilvershadow is on a distinguished road
Default

i can get the width/height using some libs of pil. that works very well but i didn't manage to get the gifs transparent. it looks like the hex colorkey doesn't work. i tried with different gifs. i used exit.gif and that image was transparent but it didn't matter when i changed the colorkey; it stayed transparent. but that is a 32bit pic. i have to handle 8bit gif images.
__________________
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
Movies play in smaller on-screen image size thericky XBMC for Xbox Specific Support 0 2005-10-23 02:50
Dvd image fils? MrMortenI XBMC for Xbox Specific Support 1 2005-08-30 13:55
Image slideshow:  advance image while zoomed in Asteron XBMC Feature Suggestions 3 2005-06-26 20:24
Image selection seven5 Plugin/Script (Python) Development 5 2004-12-15 18:23
CD Image ausbremen XBMC for Xbox Specific Support 1 2004-04-17 21:34


All times are GMT +2. The time now is 13:30.


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