Images with transparency not handled correctly (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    MediaPortal Version: Any version I have tested going all the way back to pre-release of 1.0...

    The problem is the use of images with transparency. When these are scaled, it looks like the alphachannel is not kept transparent around the edge between the transparent and non-transparent area.

    Take the background from the B3W skin. Now use Photoshop or another tool to "cut holes" in it (ie transparent areas). Save as either 32-bit or 24-bit PNG (same same).

    Overlay this new background on the original background from B3W in MediaPortal (like in BasicHome.xml). Around the transparent areas, you will now have a nice greyish border. The border should have been semi-transparent, if visible at all.

    I have explained the problem further in different threads, like in this one:
    https://forum.team-mediaportal.com/...vision-24102-rar-73340/index6.html#post535417

    Unfortunately it looks like textures are drawn to screen in an external DLL (fontEngine.dll) and this prevents me from examining the problem further.

    We are definitely talking about a serious bug, as this prevents any serious use of transparency in graphics in any skin.

    I have spent the last three days studying anything I could find about GDI+ and on the surface it looks like the textures are premultiplied per channel as they should (I guess). If you set the image you draw to <keepaspectratio>yes</keepaspectratio> the texture is fine in fullscreen (where the height/width is a 1:1 match to resolution).

    The Bitmaps used are also in PixelFormat32bppARGB which I (again guessing) think is correct.

    There is no difference in result for GIF or PNG.

    If you need further proof or I have to explain more detailed, please tell me :)
     

    Users who are viewing this thread

    Top Bottom