Re: RFI: Image_Resize

From: Date: Mon, 15 Apr 2002 15:12:20 +0000
Subject: Re: RFI: Image_Resize
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5520@lists.php.net to get a copy of this message
le 15/04/02 9:18, Alan Knowles à alan@akbkhome.com a écrit : >> >> >>> $img->ResizeY(1024); >> > I quite like this as its very descriptive on what action is about to be > taken. - dont really mind eather way though.. > >> >> I prefer just to have one resize command rather one for each >> dimension. The class should accept null for a distance, and if that's >> given default to the original image size: >> $im->resize(null, 1024); > > the other option is just to use 0 - to indicate ignore, as if you sent > 0 anyway it would be a 'stupid thing to do' :) IMHO, the most interesting thing to do in image manipulation domain is to use a Transformation Matrix as it is explained here : http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin gTopics/DrawBasic/Concepts/transforms.html You just fill a Matrix (a multidimensional array or a dedicated object) and send it to your image class. This will return the modified image. Other implementation seems too heavy, too limited or too simple. Bertrand Mansion Mamasam

« previous php.pear.dev (#5520) next »