Re: NSImages rendered at runtime and resolution independent UI...
Re: NSImages rendered at runtime and resolution independent UI...
- Subject: Re: NSImages rendered at runtime and resolution independent UI...
- From: Shawn Erickson <email@hidden>
- Date: Tue, 31 Oct 2006 07:40:50 -0800
On Oct 31, 2006, at 2:01 AM, Ken Ferry wrote:
It isn't clear to me if the following drawing code will automatically
create an image 12 by 12 point image with pixel DPI already adjusted
as needed for screen display.
Yep, that's what will happen. Right now, if you lock focus and draw
in an image, you're drawing into a view placed in an offscreen window
(cf. -[NSCachedImageRep window], -[NSCachedImageRep rect]). The
window has the same default scaling between window space and the top
level view as do most windows.
In the future the drawing may not always go into a real window, but
the scaling behavior will be preserved. If you think you need finer
control over your bits, you can draw to an NSBitmapImageRep via
-[NSGraphicsContext graphicsContextWithBitmapImageRep:] or to a
CGBitmapContext.
Thanks for the verification Ken. I thought I saw it happening...
glad to know it is expected and will be maintained.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden