Is it possible to make a display.newRect larger than the current screen size?

Hi, I’m trying to create a rectangle to use as a mask file. It gets saved using display.save. All is good as long as my desired maskFile (err rectangle) is equal to or smaller than the current screen size. Is it not possible to create a rectangle using display.newRect that is larger than the current screen size?

If the answer is no what are my options then in terms of creating a rectangle that is 8 pixels wider than the current screen width? Thanks much for your help.

You can create a rectangle bigger than the screen.  I do it all the time for scrolling backgrounds.  The problem is display.save() is going to capture the screen bounds.

Got it. Thanks much for the clarification. So my problem is with display.save. Is there any way around this? Capturing from Camera for example will always generate images larger than screen bounds. How would you save those completely? Appreciate your help.

You could have it all in a group then scale the group to screen size before saving. May not be ideal but should work

Thanks for the tip. Would I get the original size in the saved file or the scaled down version? Since I want to make a mask file dynamically I need the screen width + 8 pixels to be my real file size. Any ways to achieve this?

If the widget you are trying to mask is full screen, you don’t need a mask.  Without a mask, the widget assumes full screen.  The only reason you would want to create a mask on the fly is if the widget is smaller than the whole screen.

I need a mask that is less than full screen height but is full screen width + 8 pixels. I use it to mask a tableView which uses all screen width available but is shorter than the full screen since I use a tabbar at the bottom of the screen. That’s why I am struggling with the issue of saving a rectangle larger than the screen width. Any ideas?

You can create a rectangle bigger than the screen.  I do it all the time for scrolling backgrounds.  The problem is display.save() is going to capture the screen bounds.

Got it. Thanks much for the clarification. So my problem is with display.save. Is there any way around this? Capturing from Camera for example will always generate images larger than screen bounds. How would you save those completely? Appreciate your help.

You could have it all in a group then scale the group to screen size before saving. May not be ideal but should work

Thanks for the tip. Would I get the original size in the saved file or the scaled down version? Since I want to make a mask file dynamically I need the screen width + 8 pixels to be my real file size. Any ways to achieve this?

If the widget you are trying to mask is full screen, you don’t need a mask.  Without a mask, the widget assumes full screen.  The only reason you would want to create a mask on the fly is if the widget is smaller than the whole screen.

I need a mask that is less than full screen height but is full screen width + 8 pixels. I use it to mask a tableView which uses all screen width available but is shorter than the full screen since I use a tabbar at the bottom of the screen. That’s why I am struggling with the issue of saving a rectangle larger than the screen width. Any ideas?