Rotate and scale images

Phil Davis revdev at pdslabs.net
Thu Mar 6 13:37:09 EST 2008


Hi Henk,

I haven't tried this, but... does the image misbehave when rotating even 
when the lockLoc of the image is set to true? Seems like that would stop 
it from reverting to its 'formatted' size.

Just a thought -
Phil Davis


Henk van der Velden wrote:
> Good day all,
>
> I'm having a hard time rotating and scaling images.
> When scaling an image and then rotating it (set the angle), the scale 
> is 'lost'. Whenever the angle is changed, the image size is reset to 
> the formattedheight / width.
>
> How can I handle this?
> Do I have to recalculate the minimal circumscribing rectangle every time?
>
> And what in case the image is rotated already and then I want to scale 
> it? When using the normal horizontal / vertical scaling, the image 
> gets skewed. Do I need to script the whole mathematics of this?
>
> Kind regards,
>
> Henk
> --------------------------
> Henk v.d. Velden
> iGlow Media
> Magda Janssenslaan 36
> 3584 GR  UTRECHT
> Netherlands
>
> 0031 (0)6 16 024 337
> www.iglow-media.nl

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net




More information about the Use-livecode mailing list