• 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: Bundled Image scaled down when displayed (drawAtPoint)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bundled Image scaled down when displayed (drawAtPoint)


  • Subject: Re: Bundled Image scaled down when displayed (drawAtPoint)
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 03 Jul 2011 18:47:48 -0700

On Jul 3, 2011, at 9:00 AM, Benjamin Dubois wrote:

> It looks like when I run the app, my bundled image is scaled down to about
> 75% of it is actual size.

The resolution of the image is probably set to greater than 72dpi. Take a look at it in the Preview app’s Info pane. To fix this, either use an image editor to edit the image and change its DPI to 72, or get its pixel dimensions:

NSImageRepresentation *rep = [image bestRepresentationForDevice: nil];
int width = rep.pixelsWide;
int height = rep.pixelsHigh;

—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: 
 >Bundled Image scaled down when displayed (drawAtPoint) (From: Benjamin Dubois <email@hidden>)

  • Prev by Date: Re: Line Drawing problem
  • Next by Date: Re: Bundled Image scaled down when displayed (drawAtPoint)
  • Previous by thread: Bundled Image scaled down when displayed (drawAtPoint)
  • Next by thread: Re: Bundled Image scaled down when displayed (drawAtPoint)
  • Index(es):
    • Date
    • Thread