Is Content Scaling/Dynamic Image Resolution broken?

https://files.me.com/horacebury/1e9qu2

If you take a look at the project at that link you’ll see a set of images which look fine on iPhone and iPhone 4, but when the 768x1024 iPad image is loaded in the iPad simulator it is still letterboxed, which distorts the image.

Is this a bug or am I simply doing the wrong thing?

m [import]uid: 8271 topic_id: 7172 reply_id: 307172[/import]

I should point out that switching the scale mode to “zoomEven” only makes the problem worse because the iPad then zooms the image up and ends up cropping the top and bottom. [import]uid: 8271 topic_id: 7172 reply_id: 25218[/import]

@horacebury wl You Please Tell me the Difference between these scales

1.Letterbox
2.ZoomEven
3.ZoomStretch

Thanx in Advance [import]uid: 42171 topic_id: 7172 reply_id: 30774[/import]

  1. Resizes the image to fit the screen without cropping anything off. May leave black bars where the image doesn’t fill the screen.

  2. Resizes the image to fit the screen so that there are no black bars. The image will disappear off the edge of the screen where the dimensions are not the same as the screen.

  3. Stretches the image to fit the screen, but of course it will be distorted.

Letterbox is recommended and that’s what I used.

You may notice that your splash screen image does not fill the screen on the iPad simulator, but (if it is the right size) it will on the device. I’m assuming this is a bug, but have not looked into it.

Hope that helps,

Matt. [import]uid: 8271 topic_id: 7172 reply_id: 30782[/import]

Hey Thanx Matt

I wanna ask another question if you dont mind…

if i wanted to set any image as background in case of display.imageRect()

What are the x and y scales of it and How?

Please Explain…

and What about that Splash Screen Issue?

would u Resolve it? [import]uid: 42171 topic_id: 7172 reply_id: 30895[/import]

The best way to set any image as a background is to have it as the same resolution as the device it is being rendered on. In my case, I used one for iPad and one for iPhone 3GS. That means that with letterbox scaling the image is only trimmed on iPhone 4, which makes it look normal. On iPad it just fills the screen properly.

Don’t worry about the splash screen. Make your high res image match the iPad resolution and it will look fine on the iPhone too.

Remember, the images are loaded based on the default lowest resolution you provide in the configuration, but they don’t have to be the same scale, which doesn’t work for interior images but backgrounds are fine. [import]uid: 8271 topic_id: 7172 reply_id: 30896[/import]