Re: Creating a bitmap of a scaled-down NSImage
Re: Creating a bitmap of a scaled-down NSImage
- Subject: Re: Creating a bitmap of a scaled-down NSImage
- From: Nir Soffer <email@hidden>
- Date: Tue, 27 Mar 2007 04:09:11 +0200
On Mar 27, 2007, at 03:39, John Stiles wrote:
I have an NSImage that has arrived from an external source that I
don't directly control. I need to scale it down and rasterize it to
an NSBitmapImageRep—the ultimate goal is to get it into an OpenGL
texture, and we have maximum texture-size limits that I need to
respect.
Use CoreImage - either CIAffineTransform (faster, lower quality) or
CILanczosScaleTransform (slower, higher quality).
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