Image aspect ratio stretching on different devices

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
MrCrussell
Posts: 23
Joined: Wed Nov 05, 2014 11:30 am

Image aspect ratio stretching on different devices

Post by MrCrussell » Thu Oct 29, 2015 3:20 pm

Hi,

Quick question.. The app I'm writing displays a dynamic image on a card. The actual image size is 290 x 290px and the image area on the card is the same size.

On an iPhone4 the image looks fine, but as soon as I look at it on an iPhone5+ the image stretches vertically slightly and looks more like a lozenge then a circle.

Is there a way to force the image to display correctly, or do I need to do some mathematical chicanery to get it to look right?

TIA

Chris

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: Image aspect ratio stretching on different devices

Post by quailcreek » Fri Oct 30, 2015 2:36 am

Hi Chris,
Are you using fullScreenMode?
Tom
MacBook Pro OS Mojave 10.14

MrCrussell
Posts: 23
Joined: Wed Nov 05, 2014 11:30 am

Re: Image aspect ratio stretching on different devices

Post by MrCrussell » Fri Oct 30, 2015 9:57 am

Hey quailcreek,

Yup, I'm using fullScreen set to "exact fit".

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Image aspect ratio stretching on different devices

Post by Klaus » Fri Oct 30, 2015 2:02 pm

MrCrussell wrote:I'm using fullScreen set to "exact fit".
Doesn't that answer your question? What do you exspect?

This feature will force your iPhone 4 320*480 pixel stack into the iPhone 5 320*568 pixel rect?
This MUST result in a slight unproporional distortion of the stack and all of its content? :D

Post Reply