Your Digital Media Has Never Looked So Good

 
jkard
Topic Author
Posts: 46
Joined: Thu May 12, 2011 3:36 pm

Background Image

Thu Oct 06, 2011 2:00 pm

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
 
User avatar
RokuChris
Posts: 1166
Joined: Mon Aug 30, 2010 1:45 pm

Re: Background Image

Thu Oct 06, 2011 2:26 pm

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).
 
jkard
Topic Author
Posts: 46
Joined: Thu May 12, 2011 3:36 pm

Re: Background Image

Thu Oct 06, 2011 2:36 pm

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
 
User avatar
RokuChris
Posts: 1166
Joined: Mon Aug 30, 2010 1:45 pm

Re: Background Image

Thu Oct 06, 2011 2:49 pm

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.
 
jkard
Topic Author
Posts: 46
Joined: Thu May 12, 2011 3:36 pm

Re: Background Image

Thu Oct 06, 2011 2:55 pm

Got it, thanks!
 
koshermetal
Posts: 18
Joined: Sat Oct 29, 2011 1:13 am
Location: United States
Contact:

Re: Background Image

Mon Oct 31, 2011 12:26 pm

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!
Free 24/7 Metal radio via web or smartphone
www.koshermetal.com
 
brocker
Posts: 82
Joined: Fri Mar 25, 2011 4:17 pm

Re: Background Image

Mon Oct 31, 2011 1:20 pm

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
 
koshermetal
Posts: 18
Joined: Sat Oct 29, 2011 1:13 am
Location: United States
Contact:

Re: Background Image

Mon Oct 31, 2011 1:33 pm

Thanks Bud! I will try that out.
Free 24/7 Metal radio via web or smartphone
www.koshermetal.com

Who is online

Users browsing this forum: No registered users and 5 guests