NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 15 16 17 18 19 … 93 Next »
Skinning & Rendering

 
  • 0 Vote(s) - 0 Average
Skinning & Rendering
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#11
2011-05-11, 02:54 AM
sub Wrote:To be honest, I dont really follow what your mean.

If you're calling skinHelper.RenderElement(), passing in 'null' for the bitmap, then creates a new bitmap, fully transparent, then proceeds to draw the render instructions that make up the element. If the render instructions will result in a bitmap can either full the space, or have transparent or semi-transparent areas.

That's how I create it I pass it back as

Code:
if (name == "@previewImage")
            {
//                string aa = parameters["@name"].ToString();
//                Debug.WriteLine(MusicBox4.GetInstance().activeAlbum + " "  + width.ToString() + " " + height.ToString());
//                image = (Image)parameters["@Image"];
                if (MusicBox4.GetInstance().iconFiles.Contains(parameters["@Filename"].ToString()))
                {
                    MemoryStream ms = new MemoryStream((byte[])MusicBox4.GetInstance().iconCache[parameters["@Filename"]]);
                    image = Image.FromStream(ms);
                    ms.Close();
                    ms.Dispose();
//                        = (Image) MusicBox4.GetInstance().iconCache[parameters["@Filename"].ToString()];
                }
...

That "transparent" was just one of countless things I have tried, T didn't help. It's too much of a black art for me, I guess.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#12
2011-05-11, 03:29 AM
I'm sure I answer the question for you, but I'm struggling to work understand the problem you're describing. I guess you dont have a sample that demonstrates the problem?

In those screenshots you posted earlier, what exactly is the problem in those pictures?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#13
2011-05-11, 05:04 AM
sub Wrote:I'm sure I answer the question for you, but I'm struggling to work understand the problem you're describing. I guess you dont have a sample that demonstrates the problem?

In those screenshots you posted earlier, what exactly is the problem in those pictures?

I eventually struggled and got it you didn't mislead me and it did work like I expected, it is just dealing with 7 skins.xml files and 5 UiList with a complicated render list is hard for me to grasp because I don't under the skinning language. What I was trying to do was get the ListSelected in the middle list box to show with no alpha mask as below, otherwise it was a little too washed out.

Thanks for your help.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#14
2011-05-11, 06:31 AM
Ok - glad you got there in the end.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#15
2011-05-20, 02:30 AM
Should base.GetRenderList() be added to the RenderList first or last or not at all?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#16
2011-05-20, 04:18 AM
It depends. If you're using a plugin derived from NewStyleButtonListPlugin, I'd probably call it first, then add any additional elements you want to display on top.
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,624
Threads: 148
Joined: Mar 2006
#17
2011-05-29, 12:04 AM
mvallevand Wrote:Is there an order of priority that the layers are applied?

Is the last item in the last active Element in the last RenderList always applied last or are there other factors?

sub Wrote:When you the skin helper to renderer a UIElement (skinHelper.RenderElement()), it always goes through the rendering instructions in the order your skin's xml defines them.

sub can you help me (or Martin, I'm not 100% sure which of us are right or wrong on this one not being a programmer) understand this...

From your reply Martin keeps telling me the order Elements are rendered in are controlled by the skin order.

From what I have seen when playing with skins is the skin has no control over the order of the render of the Elements themselves but does have total control over the render order "within" an Element.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#18
2011-05-29, 12:50 AM
My comment is saying the items within an <Element> are in the order the skin file specifies. ie, all your <RoundedRect> <Text> <Image> etc instructions are drawn in the order your skin specifies.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#19
2011-05-29, 01:00 AM
sub Wrote:My comment is saying the items within an <Element> are in the order the skin file specifies. ie, all your <RoundedRect> <Text> <Image> etc instructions are drawn in the order your skin specifies.
So is the rendering order...

Global.xml
Skin.xml

and within that, each Element in a skin file is rendered sequentially, and each item within an Element is also rendered sequentially...
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#20
2011-05-29, 01:11 AM
Jaggy Wrote:From your reply Martin keeps telling me the order Elements are rendered in are controlled by the skin order.

No, I said that I create rendering zones, and I wrote you saying they were

defaults
Left
Right
MusicBox (Zone Position)
Middle
Search
Little box in the top with default


Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Suggested Addition to Skinning KingArgyle 5 2,589 2008-09-09, 04:32 PM
Last Post: PartialGestalt
  Popup re-rendering whurlston 2 1,608 2008-05-03, 07:21 AM
Last Post: whurlston
  Skinning the main menu alibert 2 1,681 2007-11-18, 03:53 PM
Last Post: alibert
  newb to skinning skippy_nz 2 1,699 2006-09-08, 07:24 AM
Last Post: skippy_nz
  Skinning News Old Dog 84 18,604 2006-09-07, 10:39 PM
Last Post: Old Dog
  Trouble skinning Theater Old Dog 14 4,259 2006-07-25, 12:00 AM
Last Post: Brian_W
  Plugin/skinning question Old Dog 9 2,870 2006-01-29, 01:04 PM
Last Post: Old Dog
  Skinning Question kayleigh 7 2,471 2006-01-02, 05:01 PM
Last Post: kayleigh
  Guide Current Time Arrows Skinning Necro 1 1,137 2005-10-04, 01:44 AM
Last Post: sub
  An Idea to improve skinning mthornton 3 1,801 2005-06-10, 10:28 PM
Last Post: reboot

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

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

Linear Mode
Threaded Mode