• 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: NSImages rendered at runtime and resolution independent UI...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSImages rendered at runtime and resolution independent UI... (From: "Shawn Erickson" <email@hidden>)
 >Re: NSImages rendered at runtime and resolution independent UI... (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Re: OT macro questions ?
  • Next by Date: Re: Open my Application via safari
  • Previous by thread: Re: NSImages rendered at runtime and resolution independent UI...
  • Next by thread: Re: NSImages rendered at runtime and resolution independent UI...
  • Index(es):
    • Date
    • Thread