Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!news2.near.net!MathWorks.Com!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!zip.eecs.umich.edu!umn.edu!news
From: "Bruce R Gilmore" <ofx@maroon.tc.umn.edu>
Subject: Re: Image Manipulation VW 2.0
To: tans@bnr.ca
Message-ID: <17862.ofx@maroon.tc.umn.edu>
X-Minuet-Version: Minuet1.0_Beta_8
Sender: news@news.cis.umn.edu (Usenet News Administration)
Nntp-Posting-Host: dialup-1-16.gw.umn.edu
X-Popmail-Charset: English
Organization: University of Minnesota, Twin Cities
Date: Wed, 14 Sep 1994 20:46:55 GMT
Lines: 24

On 13 Sep 1994 09:09:37 -0500, Russell Edwards wrote:

>
>Does anyone know if Images can be magnified and shrunk by non
>integer factors.  Say, for example that I want to magnify an
>image by 1.25@1.25.  I know I can magnify by 5 and shrink by 
>four, but for large images the overhead of large magnifications 
>becomes too large and if I want to magnify by, say 1.34567, I would
>have to magnify the image by an unreasonable amount before I could shrink it
>again to my desired final magnification.
>
>Any help in pointing me towards a clean floating point Image
>magnification scheme would be much appreciated!
>
>
>tans@bnr.ca

Unlike the magnifiedBy: method, the method shrunkenBy: can accept non 
integer values. You can also use fractional values with shrunkenBy:.
For eg. to magnify by 2.25, you can use,
 myImage shrunkenBy: (2.25 reciprocal asPoint).

Raju Chithambaram
Object/FX
