Standalone Magnify Problem
Peter Reid
preid at reidit.co.uk
Wed Apr 5 17:18:58 EDT 2017
I'm following an approach published sometime ago (http://forums.livecode.com/viewtopic.php?f=7&t=8288 <http://forums.livecode.com/viewtopic.php?f=7&t=8288>) to provide a floating magnifier over the top of quite a large image. I have it working fine when I'm in the development environment but it's not working reliably in a standalone app. Here's a summary of what I'm doing:
- I generate images of 1,000 x 1,000 pixels, created using the export snapshot facility
- my app lets the user select a magnification factor in the range 4-16 times the original
- I scale-up a copy of the image (making an image of 16,000 x 16,000 say) and magnify this scaled copy
- I present the magnified view through a group using the hScroll/vScroll and formattedHeight/formattedWidth properties
The above works well when in the development environment. When it's a standalone app I get various incorrect behaviours:
- the magnified view is all white, or all black
- the magnified view is of the wrong part of the image
- it sometimes works in the Mac standalone but not the Windows standalone
I have built the standalone using lc 8.1.2, lc 8.1.3, lc 8.1.4-rc1 and lc 9.0.0-dp6. In all cases I have tried building using automatic inclusions and manual inclusion selection, but none of this makes it work in the standalone! For manual selection I tried inluding every option available for Mac & Windows irrespective of whether I needed it or not. However, even when I include "everything", it still doesn't work in the standalones!
The problems imply the lack of some inclusion and/or memory issues. Has anyone come across this and, if so do you have a solution?!
Thanks.
Peter
--
Peter Reid
Loughborough, UK
More information about the use-livecode
mailing list