• 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
Setting DPI of image data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting DPI of image data


  • Subject: Setting DPI of image data
  • From: Graham Cox <email@hidden>
  • Date: Fri, 11 Jul 2008 13:16:02 +1000

I'm using NSBitMapImageRep's -representationUsingType:properties: method to convert data to JPEG, TIFF, etc. I'd like to be able to specify the DPI of the image. I can calculate the right number of pixels needed for a given DPI OK, but the image always comes up as having 72 dpi when opened in another app. Is there a way to set this property at this level, or am I forced to drop down into Image I/O?

I had hoped that the properties passed at this level (such as kCGImagePropertyDPIWidth) would just get passed down to the lower levels, but that doesn't appear to be the case.

tia,

Graham
_______________________________________________

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


  • Follow-Ups:
    • Re: Setting DPI of image data
      • From: Marcel Weiher <email@hidden>
  • Prev by Date: Re: Any good advice for naming parameters of init methods?
  • Next by Date: Re: Setting Finder comments and keywords
  • Previous by thread: Re: Extracting text elements from an Image
  • Next by thread: Re: Setting DPI of image data
  • Index(es):
    • Date
    • Thread