Importing an image

Bob Sneidar bobs at twft.com
Tue Jul 26 12:31:18 EDT 2011


I will say this about resizing images in Livecode: Don't. The Preview app that comes with Apple OS X does a much better job of resizing an image than Livecode does "on the fly" by which I mean setting the size of the image using the height and width properties. This is not a criticism, but an observation. Also, resizing in LC doesn't stick unless you lock the size and position of both the image and the object using the image (in my experience at least). Quitting and relaunching Livecode may reveal that the images have reverted to their original sizes. 

So now I create images the size I need them to be in the application. Scott Rossi will tell you the best way of scaling the images once inside LC. 

Bob


On Jul 25, 2011, at 10:32 PM, Pete Haworth wrote:

> I totally missed the "paint" keyword in the dictionary but all is well now.
> 
> The reason I was doing this is because took a PNG snapshot of a group
> control into an image control, then tried to resize the image control, but I
> found that the image lost definition very quickly.  My solution was to
> export to a file, resize it in Photoshop, then import it.  Maybe there's a
> way to do the resizing in LC without losing definition?
> 
> Pete
> 
> 
> 
> On Mon, Jul 25, 2011 at 9:24 PM, Ken Ray <kray at sonsothunder.com> wrote:
> 
>>> Using 'eps' crashes Livecode for me as well with a PNG file - 'paint'
>> works
>>> fine however.
>> 
>> EPS is a *very old* import method, dating back to when MetaCard (the
>> precursor to Revolution which was the precursor to LIveCode) was only on
>> Unix; it was for systems that used Display Postscript (like NeXT boxes)...
>> so I'm not too surprised that it crashes LiveCode when fed the wrong
>> filetype...
>> 
>> ;-)
>> 
>> Ken Ray
>> Sons of Thunder Software, Inc.
>> Email: kray at sonsothunder.com
>> Web Site: http://www.sonsothunder.com/
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list