Image resize.

Klaus Major klaus at major-k.de
Tue Oct 19 16:54:34 EDT 2004


Hi Frank,

> Apparently I missed a message here: I didn't get the one with the full 
> code.

so did i :-)

> ...
> end resizeControl
>
> Obviously, we could simply record the original width/height before 
> resizing, and this could be used to maintain the aspect "as is" during 
> the resize, but I would personally prefer to maintain the original 
> aspect ratio recorded in the image file.  Is it possible to get that 
> info from rev (the actual pixel width and height recorded in an 
> image)?

Yep, that's "the formattedheight" and "the formattedwidth" of an 
image...


Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list