Re: fast bitmap image scaling
Re: fast bitmap image scaling
- Subject: Re: fast bitmap image scaling
- From: Ben Zotto <email@hidden>
- Date: Wed, 10 Jan 2007 19:26:38 -0800 (PST)
Thanks Douglas and Nir for the pointers. I hadn't spent any time with CIImages because as of yet there's nothing in the meat of my app that requires Tiger and I was hoping to keep it that way for a couple reasons. But it might be the best thing to look at. In any case I'll first try just bluntly using an NSAffineTranform with a fixed size destination for the NSImage to see if that circumvents some of the bitmap-specific scaling.
I suppose it's worth a shot asking if there's any way to lock and access the pixels in a view directly, or if the automatic double-buffering of drawing can be temporarily suspended?
Thanks
Ben
----- Original Message ----
From: Nir Soffer <email@hidden>
To: douglas a. welton <email@hidden>
Cc: Ben Zotto <email@hidden>; email@hidden
Sent: Wednesday, January 10, 2007 4:42:35 PM
Subject: Re: fast bitmap image scaling
On Jan 11, 2007, at 00:13, douglas a. welton wrote:
Have you tried playing with CIImages and the CIFilter CILanczosScaleTransform?
The quality is great, but it is slow, specially on Mac mini and old macs like Emac.
The fastest way I found is using CIAffineTransform - but the quality is not great. It may be good enough for animation.
Best Regards,
Nir Soffer
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden