Forum Discussion

jkard's avatar
jkard
Visitor
15 years ago

Background Image

Hey Gang,

What is the best way to do a background image? I would like to put one on a Poster and Springboard screen, and am not really finding a conclusive way to do it. I keep seeing mention of the roImageCanvas, but not sure if the discussions (viewtopic.php?f=34&t=43667&p=297578&hilit=image#p297578) are doing specifically what I need.

What is the "proper" or "best" method for putting an image behind a Poster and Springboard screen? Can it be done without creating a whole customized canvas?

Thanks
Jay

7 Replies

  • "jkard" wrote:
    What is the best way to do a background image? I would like to put one on a Poster and Springboard screen, and am not really finding a conclusive way to do it. I keep seeing mention of the roImageCanvas, but not sure if the discussions (viewtopic.php?f=34&t=43667&p=297578&hilit=image#p297578) are doing specifically what I need.

    What is the "proper" or "best" method for putting an image behind a Poster and Springboard screen? Can it be done without creating a whole customized canvas?


    It's not possible to change the background of a roPosterScreen or a roSpringboardScreen to anything other than a solid color. To accomplish something like that, you would have to build your own screen type from scratch using roImageCanvas (or roScreen on 3.0 and up).
  • Thanks Chris,

    What is the roScreen? I'm not seeing it referenced in my 3.0 documentation. I looked in the Compontent Reference and the Brightscript 3.0 Reference and it's not mentioned.

    Any pointers?

    Thanks
    J
  • "jkard" wrote:
    What is the roScreen? I'm not seeing it referenced in my 3.0 documentation. I looked in the Compontent Reference and the Brightscript 3.0 Reference and it's not mentioned.


    Assuming you have the 3.0 SDK (viewtopic.php?f=34&t=39272), it's section 11 of the BrightScript Reference.
  • "RokuChris" wrote:
    It's not possible to change the background of a roPosterScreen or a roSpringboardScreen to anything other than a solid color.


    This is what I'm trying to figure out. How do I change the background(s) from gray to black? I'm used to working with HTML so my eyes are trained to look for things like <background color="000000">

    Anyone know how I can change the default background color? I'm using the videoplayer example and SDK 29

    Thanks!
  • To change the background color you only need to set the "BackgroundColor" of the roAppManager. For example

    app = CreateObject("roAppManager")
    theme = CreateObject("roAssociativeArray")
    theme.BackgroundColor = "#000000"
    app.SetTheme(theme)


    Most of the example projects have this code set in the InitTheme or InitializeTheme methods.

    Hope that helps!
    Bud