Re: Setting DPI of image data
Re: Setting DPI of image data
- Subject: Re: Setting DPI of image data
- From: Graham Cox <email@hidden>
- Date: Sat, 12 Jul 2008 00:52:08 +1000
Thanks, that was the step I'd missed (sort of obvious in hindsight!).
Thanks also to Marcel who pointed out the same thing.
Graham
On 11 Jul 2008, at 7:13 pm, Heinrich Giesen wrote:
If you create image data of Type jpeg, tiff, png, etc from a sourceRep
(NSBitMapImageRep) with -representationUsingType:properties: these
data
contain the number of pixels *and* the resolution of the sourceRep.
If you want a special resolution you have to set that value in the
sourceRep. But you can't set the resolution directly in
NSBitMapImageRep
with something like -setResolutionX:resolutionY: You have to set the
size of the rep!
_______________________________________________
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