Pixelated Image with any setting

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tibinta
Posts: 6
Joined: Fri Apr 22, 2016 12:52 pm

Pixelated Image with any setting

Post by tibinta » Sun Apr 24, 2016 5:27 am

I have a problem with images and controls looking good on my device (iPhone 6s Plus) they appear jaggy and pixelated,

1) tried to use the canvas with 1920x1080 resolution,
2) tried to use the default resoltion from LiveCode template
3) tried adding the @extrahigh resolution of image
4) added:
on preOpenStack
set the useDeviceResolution of this stack to true
set the fullscreenmode of me to “letterbox”

In simulator this works and shows great
But not on the device
Screen Shot 2016-04-24 at 07.07.34.jpg
Screen Shot 2016-04-24 at 07.07.34 copy.png
Screen Shot 2016-04-24 at 07.07.34 copy 2.png
Screen Shot 2016-04-24 at 07.07.34 copy 2.png (9.5 KiB) Viewed 2754 times

tibinta
Posts: 6
Joined: Fri Apr 22, 2016 12:52 pm

Re: Pixelated Image with any setting

Post by tibinta » Sun Apr 24, 2016 6:05 am

For anyone that will have this problem I have solved it by adding:


on openStack
## Prevent IDE errors:
if the environment <> "mobile" then
exit openstack
else
## NOW we are safe :-)
--iphoneUseDeviceResolution true, true
set the useDeviceResolution of this stack to true
set the acceleratedRendering of this stack to "true"
set the fullscreenmode of me to "letterbox"
end if
end openStack

Now it looks OK

Post Reply