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,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    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 (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    horned_reaper [solved] ID3 tag album cover is not displayed Fanart Handler 62
    F 1.25.0 Display corruption Bugreports 0
    M Problems with VFD Display after standby- Futaba DM140GINK Mini Display 0
    D Display Day of week in TV Guide? Feature Requests 0
    CyberSimian [Proposal] Tool to display time of next recording MediaPortal 1 0
    X [solved] Display needs to be turned on for TV services to function General 1
    M 2nd (Touch-)Display Support on MediaPortal 2 such MPDisplay++? General 2
    S Mini Display MP 1.24 no Volume OSD no action for keys Mini Display 0
    M [Suche] Display Futaba mdm166a Marktplatz 0
    N [fixed] [MP2-822] Folder View is not displaying individual media share elements Submit: Bug Reports 4
    HTPCSourcer Special (foreign) characters don't display correctly in EPG MediaPortal 2 4
    P Recommendations for Spectrum Analyzer/VU Metre/Graphical EQ for second display General 0
    azzuro [fixed] [MP2-813] Album artist filter wrong display Submit: Bug Reports 75
    Dark Eyes Display subtitles on a separate display or device MediaPortal 1 Plugins 0
    P TV recording not displaying episode titles or going into series General 10
    S Display non english folder name, subtitle, etc. General 23
    S [solved] Movie SRT subtitle didn't display on client 2.2 Archive 18
    A Mediaportal 2.2.1 - Some series posters not displaying General 6
    M [Pending] Fix for Inconsistent date display in TV Guide Submit: code patches (MediaPortal/TV-Server/etc.) 1
    drumrob Inconsistent date display in TV Guide 1.22 Pre Release 15
    H Live TV info OSD not displaying number of audio channels General Support 3
    T Moving Pictures...seem to have 'lost' ability to display Movie info. (eg Resolution/Audio) Moving Pictures 2
    HTPCSourcer [fixed] [MP2-794] Genre filtering always displays English strings MediaPortal 2 9
    S Something is just not right (Display) Newcomers Forum 1
    S Display driver failed to start, using microsoft basic display driver instead General Support 23
    Similar threads

























    Top Bottom