----- Original Message -----
From: "Luke" <[EMAIL PROTECTED]>
<snip removed="on getImage"/>
>
> #ScaleConstrained:
> if inputImg.width > inputImg.height then
I belive the above line is faulty, it should have the returnRect in mind
here, like this:
WidthScale = returnRect.width / inputImg.width
HeightScale = returnRect.height / inputImg.height
theScale = Max( WidthScale, HeightScale )--with other scaling method you
should use Min( WidthScale, HeightScale )
-- theScale = float(returnImg.width)/inputImg.width
--else
-- theScale = float(returnImg.height)/inputImg.height
--end if
> destRect = getCentreRect(inputImg.rect * theScale, returnRect)
> returnImg.copyPixels(inputImg, destRect, inputImg.rect)
>
<snip removed="the rest"/>
/Christoffer
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]