![]() |
|
|||||||
| 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! |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Oct 2003
Location: Netherlands
Posts: 136
![]() |
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. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Oct 2003
Location: Netherlands
Posts: 136
![]() |
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. |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2004
Posts: 174
![]() |
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. |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Oct 2003
Location: Netherlands
Posts: 136
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |