Setting DPI of image data
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