Question about bleedthrough on edges of newRect, newImageRect

On my current project, the background of the Settings menu is a single color. I tried using newRect for it, but noticed that there was a faint bleedthrough around the edges of the picture – I could see faint images of the edges of the screen underneath it.

I tried replacing newRect with a one-pixel newImageRect and… the result was exactly the same!

Then I used a 1024x1024 newImageRect and the problem was solved, or at least mitigated to the point of being good enough for my purposes.

My suspicion (though not a certainty) is that when Corona enlarges an image, since the edges have no pixels outside them, it is assuming “null” pixels there, with an alpha value of 0, and blending that into the edge pixels.

If that theory is correct – then, is there a way around this, or could newRect and newImageRect offer an option to ensure that “ghost” pixels beyond the edges are treated as the same color and alpha for resizing/blending purposes?
[import]uid: 117162 topic_id: 31607 reply_id: 331607[/import]

Hmm, just occurred to me that sizing the image to a size *larger* than the screen dimensions could fix it… but I’d still like to know more about this! [import]uid: 117162 topic_id: 31607 reply_id: 126251[/import]

Update… on further testing, the 1024x1024 image doesn’t work as well as I thought. Will try some more stuff. [import]uid: 117162 topic_id: 31607 reply_id: 126267[/import]

Update: Tried increasing the background size to 1.25 * height and width; no change. It’s a puzzler! [import]uid: 117162 topic_id: 31607 reply_id: 126272[/import]

Hmm, just occurred to me that sizing the image to a size *larger* than the screen dimensions could fix it… but I’d still like to know more about this! [import]uid: 117162 topic_id: 31607 reply_id: 126251[/import]

Update… on further testing, the 1024x1024 image doesn’t work as well as I thought. Will try some more stuff. [import]uid: 117162 topic_id: 31607 reply_id: 126267[/import]

Update: Tried increasing the background size to 1.25 * height and width; no change. It’s a puzzler! [import]uid: 117162 topic_id: 31607 reply_id: 126272[/import]