View Full Version : Image size and transprarancy
zilvershadow
2004-04-28, 09:47
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.
zilvershadow
2004-04-29, 16:06
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
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.
zilvershadow
2004-05-01, 20:04
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.