Re: NSImage resolution
Re: NSImage resolution
- Subject: Re: NSImage resolution
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 13 May 2003 14:00:45 -0700
On Tuesday, May 13, 2003, at 12:40 PM, Jean Bovet wrote:
Hello,
How can I create an NSImage and specify that I want this image to have
a resolution of 600 dpi ?
Just to be precise..
NSImage don't have pixels, (some) NSImageReps do.
If you create an NSImage that has an NSBitmapImageRep in it, and you
want to render that image such that 600 pixels cover one inch, you can
check the pixel dimensions of the imageRep, and then set the size of
the NSImage that contains the rep.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.