Stretching / Aspect fitting images

Hi,
I have assets created for the iOS devices and this works kind of fine on the iOS devices including the iPad, it gives me a black banding like the Widescreen movies do and I’m fine with that.

With the Android, it is a bit more involving, the 7" tablet I got (mistake) is 800x480, should have got a more standard device like a phone. Now I want those assets (background/art) to fit on this screen. How can I get them to stretch or aspectFit?

Another issue is that the way co-ordinates are set on the android vs the iOS, I took it for granted that Multi-platform code meant that the same code would work on any device without conditionally setting things.

The worst thing is that it shows perfectly in the simulator but fails on the device.

any suggestions?? apart from return the device (I am stuck with that)

cheers,

Jayant C Varma [import]uid: 3826 topic_id: 3585 reply_id: 303585[/import]

I am unsure where the issue lies but definitely the same code works differently on both the iOS and the Android platforms

I am getting it to work, bit by bit, I have some success, realised that for the Android, the config.lua has to be different, just painful…

  1. Config.lua has to be different
  2. Should use newImage instead of newImageRect
  3. should not use setReferencePoint

by altering these, I have some success, Could you please have a thorough documentation with details on how this works?? Why would that fail on some and work on others?
[import]uid: 3826 topic_id: 3585 reply_id: 10824[/import]

I answered your other thread.
[import]uid: 54 topic_id: 3585 reply_id: 10975[/import]