Hi All,
I have a simple Scene into a Storyboard and I load the image for background.
Inside createScene i have some code lines
background = display.newImageRect( group, “background.png”, display.contentWidth , display.contentHeight )
background:setReferencePoint( display.TopLeftReferencePoint )
background.x, background.y = 0,0
The image - background.png - has 1280x800 pixels resolution.
I define inside config .lua
application = {
content = {
width = 800,
height = 1280,
scale = “letterbox”,
fps = 30,
Nevertheless - when run app it appear 2 black bars ( surfaces) - in the left and in the right of background image - as if the background image is smaller then display resolution. In fact - the image it’s scaled, but i don’t understand why and how to remove that. If i use simple newImage instead of newImageRect and work with center reference points - all are ok.
What i’m doing wrong?
[import]uid: 157691 topic_id: 35212 reply_id: 335212[/import]
