Image size and transprarancy
#1
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.
Reply
#2
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.
Reply
#3
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.
Reply
#4
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.
Reply

Logout Mark Read Team Forum Stats Members Help
Image size and transprarancy0