• 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
Drawing to NSImage to create image data at different resolutions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing to NSImage to create image data at different resolutions


  • Subject: Drawing to NSImage to create image data at different resolutions
  • From: Antonio Nunes <email@hidden>
  • Date: Wed, 11 Apr 2007 15:35:35 +0100

Hi,

I am drawing to an NSImage (using lockFocus on the image) and then write it's TIFFRepresentation to disk. This is fine to create a 72 dpi graphic. However I would like to be able to create the image at a user defined resolution. Is there an easy way to accomplish this, or should I use a transform to scale the graphics context up (or down) before drawing and then, after capturing all the drawing, adjust the size of the imageRep to obtain the desired resolution?

António

--------------------------------------------
I try to take one day at a time, but sometimes, several days attack me all at once!
--------------------------------------------



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Drawing to NSImage to create image data at different resolutions
      • From: Antonio Nunes <email@hidden>
  • Prev by Date: Re: Detect System Idle?
  • Next by Date: [JOB] Cocoa Developer, Madison WI
  • Previous by thread: Re: Detect System Idle?
  • Next by thread: Re: Drawing to NSImage to create image data at different resolutions
  • Index(es):
    • Date
    • Thread