Re: Reduce the size of an NSImage
Re: Reduce the size of an NSImage
- Subject: Re: Reduce the size of an NSImage
- From: Jens Alfke <email@hidden>
- Date: Tue, 1 Jun 2010 11:25:34 -0700
On May 31, 2010, at 5:38 AM, Simon Raisin wrote:
> [inputImage setScalesWhenResized:YES];
> [inputImage setSize:halfSize];
This just shrinks the image’s bounding box, without actually resampling it. In other words, it doubles its DPI.
If you want to create an image with half the pixel dimensions, you’d need to create a new empty image half the size and draw the original image into it.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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