Re: Resolution of an NSImage(Rep)?
Re: Resolution of an NSImage(Rep)?
- Subject: Re: Resolution of an NSImage(Rep)?
- From: Brian Postow <email@hidden>
- Date: Thu, 5 Aug 2010 14:23:34 -0400
On Aug 5, 2010, at 2:03 PM, Quincey Morris wrote:
>> I can't think of any jokes in response to the size of the receiver in pounds that don't violate forum politeness guidelines, so I'll cede you the win on that one.
>
hehe
Ok, now the question is how do I put the image into a PDFDocument? I have the image with correct size in points, and the representation has the correct size in pixels, but when I put the image in with PDFPage initWithImage, and I get it out later with:
NSData* imgData = [pg dataRepresentation];
NSImage* img = [[NSImage alloc] initWithData:imgData ];
but at that point, everything seems to be in 72dpi! or at least, the image size is still in points, but the representations size is also in points.
I'm fairly sure I'm making this way harder than it needs to be...
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
_______________________________________________
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