• 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: Resolution of an NSImage(Rep)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Resolution of an NSImage(Rep)?
      • From: Quincey Morris <email@hidden>
References: 
 >Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Graham Cox <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Quincey Morris <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Question about color
  • Next by Date: Re: Resolution of an NSImage(Rep)?
  • Previous by thread: Re: Resolution of an NSImage(Rep)?
  • Next by thread: Re: Resolution of an NSImage(Rep)?
  • Index(es):
    • Date
    • Thread