NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 66 67 68 69 70 … 93 Next »
Drawimage in skins

 
  • 0 Vote(s) - 0 Average
Drawimage in skins
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2005-10-12, 05:51 PM
This is what I have in my skin file on a music player plugin I'm working on:

<!-- image used for album art box-->
<CompositeImage name="AlbumArt" size="150,150">
[INDENT]<DrawRoundedRect loc="4,5" size="129,120" radius="7" borderWidth="4" borderColor="White" fillColor="Black"/>[/INDENT]
[INDENT]<DrawImage filename="@AlbumArtPath" loc="8,10" size="122,112"/>
[/INDENT]</CompositeImage>


My problem is that this excepts the first filename, but dosnt allo anymore. On other words it displays the first image given no matter how many times you call it with different paths :mad:

I'm 99% my code is supplying the correct paths and the skin is ignoring it.
Is there anyone who can comment on this?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2005-10-12, 06:18 PM
When you use an @ varible with in the CompositeImage's DrawImage tag, this expects an Image object to be passed as a parameter. Its not a filename in this case.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2005-10-12, 06:33 PM
Re-reading the code it is actualy passing an image :o

Are the images cached in any way?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#4
2005-10-12, 06:39 PM
no
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#5
2005-10-12, 06:51 PM
Hmm I'm stumped then :confused:
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#6
2005-10-12, 07:21 PM
With this the album art dosnt change
[INDENT]args["@AlbumArt"] = getAlbumImage(trackPathNowIn);

Image tempImage = skinHelper.getNamedImage("AlbumArtImage" , args);
g.DrawImage(tempImage, albumArtLocation.StartX, albumArtLocation.StartY);[/INDENT]

The album art changes with this (but I would like to use the skin)
[INDENT]Image tempImage = getAlbumImage(trackPathNowIn);
g.DrawImage(tempImage, albumArtLocation.StartX, albumArtLocation.StartY);
[/INDENT]

How does skinHelper.getNamedImage() work?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#7
2005-10-12, 07:28 PM
replacing skinHelper.getNamedImage with skinHelper.getNamedImageNonCached solves it Smile

Seems like there is was bit of caching going on. Thanks for your help sub
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#8
2005-10-12, 07:40 PM
Thats actually not the caching I thought you were asking about. I assumed you were already using skinHelper.getNamedImageNonCached().
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#9
2005-10-12, 09:14 PM
No problem sub.

In future do not assume anything with me and my coding Big Grin :p lol
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Skins. Grrr. Argh. imilne 41 12,881 2011-08-20, 02:28 AM
Last Post: Northpole
  Skins - sizes of fonts and UI objects etc? bgowland 4 2,039 2011-08-12, 04:05 AM
Last Post: sub
  New to skins development dspdrew 1 1,329 2010-10-24, 11:22 AM
Last Post: sub
  Positioning of elements in skins (...and some other questions) ShiningDragon 13 4,298 2010-07-22, 06:42 PM
Last Post: ShiningDragon
  Plugins and skins mvallevand 6 2,387 2010-01-21, 02:09 AM
Last Post: mvallevand
  Trying to understand skins mkenyon2 1 1,330 2009-01-05, 10:03 PM
Last Post: psycik
  Transparency in skins Kevl 4 2,026 2007-10-30, 01:07 AM
Last Post: Kevl
  xrecord ME style skins? chrisw 20 6,093 2007-01-14, 04:33 PM
Last Post: _Dude_
  Common Images Plugins Skins & Community Skin Project MixMan 98 21,027 2006-08-24, 01:51 PM
Last Post: MixMan
  DrawImage element within CompositeImage Brian_W 3 1,839 2006-08-02, 07:05 PM
Last Post: Fatman_do

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode