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: 
ChuckC
Visitor

Pixels cutting off with roScreen / roBitmap

Hi,

I apologize if this has been answered before. When I try to display an image using the following code, the image always gets cut off on the left side by about 40 pixels. The image is smaller than my screen. I can make it better by using:
Screen.DrawObject(40, 0, bitmap)

instead of:
Screen.DrawObject(0, 0, bitmap)

but I worry that will not work on all TV's. Does anyone know why the images are getting cut off on the left side and how to fix? Is it my TV, HD in general, etc.? Thanks for your help.

Screen=CreateObject("roScreen")
port = CreateObject("roMessagePort")
Screen.SetMessagePort(port)
bitmap = CreateObject("roBitmap", "tmp:/image.jpg")
Screen.DrawObject(0, 0, bitmap)
Screen.Finish()
0 Kudos
4 REPLIES 4
RokuChris
Roku Employee
Roku Employee

Re: Pixels cutting off with roScreen / roBitmap

Could it be your TV's overscan? http://en.wikipedia.org/wiki/Overscan

There's a discussion of safe zones in the Design Guidelines doc: http://sdkdocs.roku.com/display/sdkdoc/ ... 2Safezones
0 Kudos
ChuckC
Visitor

Re: Pixels cutting off with roScreen / roBitmap

Thanks. It looks like that is what it is. The list at http://pixelmapping.wikispaces.com/ shows that my Sharp HDTV has a 5% overscan over HDMI.

I am trying to show an image on the screen and have it flush with the left side while showing every pixel but I don't think that is possible on every TV without giving the user some sort of parameter to set the overscan offset. If anyone has any thoughts I would love to hear them. Thanks.
0 Kudos
RokuMarkn
Visitor

Re: Pixels cutting off with roScreen / roBitmap

Since every TV has a different amount of overscan, it's not really possible to do that. The only safe way to display is to respect the safe zones as described in the SDK.

--Mark
0 Kudos
destruk
Streaming Star

Re: Pixels cutting off with roScreen / roBitmap

One of the SDK sample apps has a user-controlled 'overscan adjustment' routine that an application could run before displaying the main content - and the results could be saved to the roku registry for all your apps with the same dev key. I forget which sample app had it - but it was like a graphics demo one with color bars and a circle/map type display.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.