Display a image (1 Viewer)

celesta

Portal Member
February 7, 2011
46
2
How to simple display a image from png file in xaml (path problem) ?

In my screen I have this:
<Image Width="128" Height="128" Stretch="Fill" Source="cover.png"/>

cover.png is on Myplugin\Skin\default\images\cover.png

I have no error, no warning, ... but the picture don't show
 

celesta

Portal Member
February 7, 2011
46
2
Ok it work.
For source you can use only file name.

My problem was that my png is a border and the center is transparency.
When I define a width and height smaller, the image isn't resize but only crop.

Thx
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    It would also be a better idea to draw a border using the <Border> element. It's vector based and has no scaling issues and allows rounded corners.
     

    celesta

    Portal Member
    February 7, 2011
    46
    2
    Of course, but I used for testing the png from aoen stark (xbmc skin) wich has a png with border, shadow to the border and glass effect
     

    Users who are viewing this thread

    Top Bottom