• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reduce the size of an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Reduce the size of an NSImage (From: Simon Raisin <email@hidden>)

  • Prev by Date: Re: Monster memory leak and I can't figure out why
  • Next by Date: Re: App will not launch
  • Previous by thread: Reduce the size of an NSImage
  • Next by thread: Re: Reduce the size of an NSImage
  • Index(es):
    • Date
    • Thread