Rick Root wrote:
> Jordan Michaels wrote:
> 
>>On any image manipulation tags I've seen, you have to calculate the
>>proper proportions in order to keep them.
> 
> 
> ImageCFC has a scaleX and scaleY property, so ify ou want to restrict 
> your image to 50px high, you'd just use the scaleY() method.  Both 
> methods maintain aspect ratio and you don't have to do any calculations 
> for the OTHER dimension.
> 
> I'm gonna add a scaleToFit() method too that takes a maximum width and 
> height and forces your image to fit within that space but still maintain 
> aspect ratio.
> 
> Rick
> 

Nice. I didn't know that about image.cfc Rick. Thanks for pointing it
out. ;)

-- 
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Blue Dragon Alliance Member
[EMAIL PROTECTED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259966
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to