Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • Yi-Lun Luo - MSFT

    Yi-Lun Luo -...

    All-Star

    25149 Points

    2759 Posts

    Microsoft

    Re: PNG files appearing as white boxes instead of transparent

    Nov 26, 2007 04:14 AM | LINK

    Hello, as Cass said, currently Silverlight doesn’t support index transparent color. It only supports alpha transparency. Also, RGB doesn’t support transparent. You need RGBA. If you’re using Expression Design, please do the following:

    l  Create a background Rectangle which fills the whole art board.

    l  Make sure the Rectangle’s ZIndex is the smallest (right click, choose “Arrange” => “Send to Back”).

    l  Set the Rectangle’s Background’s Opacity to 0. That is, alpha should be 0.

    l  Export to a PNG file. In the “Export PNG” dialog, under “File format” => “Mode”, select “32 bits per pixel - RGBA”.

     

    Now you should be able to see transparency instead of white background. If you’re using other graphic editors, you should be able to find a similar way.

     

    shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.