Drawing to NSImage to create image data at different resolutions
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