Resizing images
Posted: Tue May 14, 2013 10:03 pm
I am working on my first app. It will be cross platform (Android, iOS).
I have implemented a handler used in one of the LC Lessons (the TickedOff app) that stores some custom properties in images, and uses them to resize each image based on the screensize, triggered on a resizeStack message. The images are used in the icon, hilitedIcon, and disabledIcon properties of buttons.
So, I set the rect of the stack to the screenrect on in the preopenstack handler, and call this handler which resizes the images based on the stack width and height. Which works to this point. I lay out the screen and size each button to match its icon image.
However, when I run the app on a device and click on one of the buttons , the images magically change back to their original size. This doesn't happen in the development environment.
Has anyone seen this before? or can give me a direction to pursue to try to figure out why this is happening or if not, at least some kind of a workaround?
I have implemented a handler used in one of the LC Lessons (the TickedOff app) that stores some custom properties in images, and uses them to resize each image based on the screensize, triggered on a resizeStack message. The images are used in the icon, hilitedIcon, and disabledIcon properties of buttons.
So, I set the rect of the stack to the screenrect on in the preopenstack handler, and call this handler which resizes the images based on the stack width and height. Which works to this point. I lay out the screen and size each button to match its icon image.
However, when I run the app on a device and click on one of the buttons , the images magically change back to their original size. This doesn't happen in the development environment.
Has anyone seen this before? or can give me a direction to pursue to try to figure out why this is happening or if not, at least some kind of a workaround?