bkc302
Visitor

RoImageCanvas Screen Resolution

This is probably a simple question but I can't seem to find an answer. I am just assuming that I make my RoImageCanvas screens to use 1280x720 but what if someones Roku was using 720x480, would everything automatically resize or would I have images running off the screen? Thanks in advance. 
Tags (1)
0 Kudos
5 REPLIES 5
Komag
Roku Guru

Re: RoImageCanvas Screen Resolution

I assume it behaves the same as with roScreen (but I'm not sure) - it will just resize, no problem
0 Kudos
TheEndless
Channel Surfer

Re: RoImageCanvas Screen Resolution

Unfortunately, no.  The roImageCanvas will not scale automatically.  You'll need to adjust your layers according to the screen resolution.

Here's a previous discussion about this in which I provided some code that I use to accomplish this without too much headache: https://forums.roku.com/viewtopic.php?f=34&t=47220&p=321624#p321271
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
bkc302
Visitor

Re: RoImageCanvas Screen Resolution

Thanks, I was hoping that it would scale automatically. @TheEndless, is there anyway you can give a quick example of how to use your HDRectToSDRect() function. Thanks in advance. 

(Edit) I have changed from 1080p to 720p and my channel still looks as it should, not sure if this will always be the case though.
0 Kudos
renojim
Community Streaming Expert

Re: RoImageCanvas Screen Resolution

720p isn't SD, so I don't think you've accomplished anything by changing resolution.  You really need to test on an old SD TV.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
bkc302
Visitor

Re: RoImageCanvas Screen Resolution

@renojim not sure what I was thinking lol. You are correct I didn't accomplish anything. Now that I know that RoImageCanvas does not resize, is there a list of resolutions that Roku uses? It seems that I can only test in 1280x720 because I don't have an older tv or older roku.
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!