• 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: NSBezierPath to NSImage with subpixel rendering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath to NSImage with subpixel rendering


  • Subject: Re: NSBezierPath to NSImage with subpixel rendering
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 9 Jan 2008 13:49:19 +0100


Le 9 janv. 08 à 13:01, Jonathon Mah a écrit :

Hi Gregory,

On 2008-01-09, at 22:10, Gregory 'guardian' Pakosz wrote:

so, what's the proper way to achieve offscreen antialising + subpixel precision in an NSImage that has a background

Is antialiasing turned on in your graphics context? [[NSGraphicsContext currentContext] setShouldAntialias:YES]

<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSGraphicsContext_Class/Reference/Reference.html#//apple_ref/occ/instm/NSGraphicsContext/setShouldAntialias: >

http://michelf.com/weblog/2006/subpixel-antialiasing-achilles-heel/

This only seems to relate to LCD antialiasing of text, which is not what you're wanting.


To get a good image scaling quality, you have to change your graphic context settings.

[image lockFocus];
[[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh];
....





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >NSBezierPath to NSImage with subpixel rendering (From: Gregory 'guardian' Pakosz <email@hidden>)
 >Re: NSBezierPath to NSImage with subpixel rendering (From: Jonathon Mah <email@hidden>)

  • Prev by Date: Re: NSBezierPath to NSImage with subpixel rendering
  • Next by Date: Non-AppKit equivalent for NSWorkspace and/or future-proof poseAsClass?
  • Previous by thread: Re: NSBezierPath to NSImage with subpixel rendering
  • Next by thread: Non-AppKit equivalent for NSWorkspace and/or future-proof poseAsClass?
  • Index(es):
    • Date
    • Thread