Re: Image Scaling Problem

2016-01-19 Thread Tore Nilsen
In the Property Inspector, set the "Lock size and position" to true in the Size & Position panel Tore > 19. jan. 2016 kl. 13.16 skrev Hillen Richard : > > Hello List, > > I just imported a 500x500px image as control into a stack, resized it using > its handles to

Re: Image Scaling Problem

2016-01-19 Thread Richmond
On 19/01/16 14:16, Hillen Richard wrote: Hello List, I just imported a 500x500px image as control into a stack, resized it using its handles to about 100 x 100 px, saved the stack and closed livecode. After restarting livecode and reopening the stack the size of the image was again 500 x

Re: Image Scaling Problem

2016-01-19 Thread Richmond
On 19/01/16 20:24, Mark Wieder wrote: On 01/19/2016 10:07 AM, Richmond wrote: On 19/01/16 17:27, Matt Maier wrote: I was just researching around this idea. http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image This says that if you want to lock the change in by script

Re: Image Scaling Problem

2016-01-19 Thread Mark Wieder
Resending because the list didn't take this the first time... On 01/19/2016 10:33 AM, Richmond wrote: > Please, in simple words, explain what the "entirely different scenario" is. Well, considering that I wrote that lesson in the first place... There's nothing in that lesson that deals with

Re: Image Scaling Problem

2016-01-19 Thread Richmond
On 19/01/16 17:27, Matt Maier wrote: I was just researching around this idea. http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image This says that if you want to lock the change in by script you have to set its imageData to its imageData set the imagedata of image tImageName

Re: Image Scaling Problem

2016-01-19 Thread Mark Wieder
On 01/19/2016 10:33 AM, Richmond wrote: Please, in simple words, explain what the "entirely different scenario" is. Well, considering that I wrote that lesson in the first place... There's nothing in that lesson that deals with locking an image. The lesson is about exporting a snapshot,

Re: Image Scaling Problem

2016-01-19 Thread Matt Maier
Oh, okay. So if you resize it and then use lockLoc to keep it there what you're seeing is a modification of the original image and if you reverse lockLoc you throw out the modification and go back to the original image. But if you set the imageData to the imageData you overwrite the original image

Re: Image Scaling Problem

2016-01-19 Thread Colin Holgate
Just my guess about this… If you have a large image and you have resized it to be smaller, and use code or the inspector to lock it, that’s one variation. It could be that you at some point you want to show the image at its original size. If you made it smaller and want to always have it at

Re: Image Scaling Problem

2016-01-19 Thread Klaus major-k
Hi Richmond, > Am 19.01.2016 um 19:33 schrieb Richmond : > On 19/01/16 20:24, Mark Wieder wrote: >> On 01/19/2016 10:07 AM, Richmond wrote: >>> On 19/01/16 17:27, Matt Maier wrote: I was just researching around this idea.

Re: Image Scaling Problem

2016-01-19 Thread Mark Wieder
On 01/19/2016 10:07 AM, Richmond wrote: On 19/01/16 17:27, Matt Maier wrote: I was just researching around this idea. http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image This says that if you want to lock the change in by script you have to set its imageData to its

Re: Image Scaling Problem

2016-01-19 Thread Scott Rossi
You use the imageData technique when you want to reduce the dimensions AND the filesize of an image (could also be called a "lossy" process because you lose data by using this method). For example, say an 800x600 image runs 2MB. If you reduce the dimensions of the image and lock it, the image

Re: Image Scaling Problem

2016-01-19 Thread [-hh]
Let me add my 1.414214 cents to this. Connected to "scaled and original size of images" (whether imported as control or by setting the filename): The *old* property inspector shows in the size & location tab the "fit content" buttons which allow to restore the original width and/or height even

Re: Image Scaling Problem

2016-01-19 Thread Richmond
On 20/01/16 03:09, [-hh] wrote: Let me add my 1.414214 cents to this. Connected to "scaled and original size of images" (whether imported as control or by setting the filename): The *old* property inspector shows in the size & location tab the "fit content" buttons which allow to restore the

Image Scaling Problem

2016-01-19 Thread Hillen Richard
Hello List, I just imported a 500x500px image as control into a stack, resized it using its handles to about 100 x 100 px, saved the stack and closed livecode. After restarting livecode and reopening the stack the size of the image was again 500 x 500px. What may I do to make the scaling

Re: Image Scaling Problem

2016-01-19 Thread Klaus major-k
Hi Richard, > Am 19.01.2016 um 13:16 schrieb Hillen Richard : > > Hello List, > > I just imported a 500x500px image as control into a stack, resized it using > its handles to about 100 x 100 px, saved the stack and closed livecode. > After restarting livecode and

Re: Image Scaling Problem

2016-01-19 Thread Matt Maier
I was just researching around this idea. http://lessons.livecode.com/m/4071/l/7084-how-to-create-a-thumbnail-image This says that if you want to lock the change in by script you have to set its imageData to its imageData set the imagedata of image tImageName to the imagedata of image tImageName