[Approved] borders for your images and buttons (new feature) (1 Viewer)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    Since you can't apply a mask to an image, i thought i could add a black->transparent faded border over the top of the image to make it look like an image has faded edges. With the border command I'd be able to do it for images that dynamically change aspect ratio (eg. MP artist thumbs)
     

    ajp8164

    Portal Pro
    January 9, 2008
    575
    1,166
    Atlanta, GA
    Home Country
    United States of America United States of America
    Since you can't apply a mask to an image, i thought i could add a black->transparent faded border over the top of the image to make it look like an image has faded edges. With the border command I'd be able to do it for images that dynamically change aspect ratio (eg. MP artist thumbs)

    Yes, you can do this with the borders feature. Be sure to read the doc carefully re: the size ad shape of your border textures. The implementation takes advantage of the h/w acceleration and so border textures should be square with the size a power of two (8x8, 16x16, 32,x32, 64x64...). Also, if you use corners on your border make the corner for the upper left - it is reused for all other corners. Let me know how it goes...
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    yup i will be doing this once it is added to an official SVN, so I will probably be waiting for a long time.

    With the borders feature will i be able to use seperate textures for left/right/top/bottom?

    This is what I hope to do when the borders comes into the SVN.
    This look is for now playing screen, when the fanart plugin can't find a high res fanart image

    EDIT: I'm suprised that a patch to add transparency mask to the image control hasn't been added yet!

    4328616873_b22fb450f2_o.jpg
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    Fixed in svn 24935- Attached core.dll that will work with yesterdays svn. Just replace.

    Mr Hipp

    So does this mean that this will be included in MP1.1 RC1 ?

    @disaster123
    I imagine it's pretty unlikely that you will... BUT have you thought about adding borders patch to your MP disaster edition?

    @kiwijunglist
    could you provide actual diff files for that feature? I will then try to include it. the original ones from 07-2009 do not work :)

    Could someone please provide the diff files? (I actually don't know what diff files are...)
    If the patch is now included in official SVN, then I don't need to ask disaster123 to include the patch in his build.
     

    ajp8164

    Portal Pro
    January 9, 2008
    575
    1,166
    Atlanta, GA
    Home Country
    United States of America United States of America
    Fixed in svn 24935- Attached core.dll that will work with yesterdays svn. Just replace.

    Mr Hipp

    So does this mean that this will be included in MP1.1 RC1 ?

    @disaster123
    I imagine it's pretty unlikely that you will... BUT have you thought about adding borders patch to your MP disaster edition?

    @kiwijunglist
    could you provide actual diff files for that feature? I will then try to include it. the original ones from 07-2009 do not work :)

    Could someone please provide the diff files? (I actually don't know what diff files are...)
    If the patch is now included in official SVN, then I don't need to ask disaster123 to include the patch in his build.


    Hi All -

    It's too difficult to provide diffs/patches for this feature at this point. Patches are made against a specific svn revision and since this feature was added there have been other features/bug fixes merged together with the content of this feature. Providing binaries (dll's) at this point may not work either since interface specifications may have also changed. The only suggestion I have is to grab my svn build from my ajp8164_stage branch (search the forum for the thread).

    Sorry there is not a better answer... :sorry:
     

    Users who are viewing this thread

    Top Bottom