Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

roImageCanvas cuts out in roku 2720

Hi,
just bought a roku 2 (2720) to test an app that was developed on roku 3, app uses roImageCanvas and seems great on roku 3, but when I run the app on roku 2 2720 (HD mode, either 720p or 1080p), the roImageCanvas seems to be cropped, and considerable amount of edges of roImageCanvas seem to be chopped off. The roDeviceInfo getDisplaySize returns 1280 and 720 for width and height, on roku2(hd mode) and roku3 both, so I presumed it will show just fine for HD. Am I assuming it wrong? Is something wrong with my roku device? Am I missing something?

Thanks,
bathejasumeet.
0 Kudos
2 REPLIES 2
hugetv
Visitor

Re: roImageCanvas cuts out in roku 2720

'Resolution-specific se
mode = CreateObject("roDeviceInfo").GetDisplayMode()
if mode = "720p"
this.layout = {
full: this.canvas.GetCanvasRect()
top: { x: 50, y:-50, w:500, h: 130 }
left: { x: 911, y: 0, w: 379, h: 206 }
right: { x: 700, y: 177, w: 350, h: 291 }
bottom: { x: 100, y: 500, w: 580, h: 270 }

}
this.headerfont = this.fonts.get("Bulldozer", 38, 50, false)
else
this.layout = {
full: this.canvas.GetCanvasRect()
top: { x: 0, y: 0, w: 720, h: 80 }
left: { x: 100, y: 100, w: 280, h: 210 }
right: { x: 400, y: 100, w: 220, h: 210 }
bottom: { x: 100, y: 340, w: 520, h: 140 }
video: { x: 0, y: 0, w: 402, h: 237 }
}
this.headerfont = this.fonts.get("Bulldozer", 15, 50, false)
end if
Our system http://www.rokumanager.com
0 Kudos

Re: roImageCanvas cuts out in roku 2720

The problem was with overscan settings of the screen.
0 Kudos