• 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: Gregory 'guardian' Pakosz <email@hidden>
  • Date: Wed, 09 Jan 2008 13:34:56 +0100


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

adding this didn't help unfortunately :( although it thought it was enabled by default.

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.

well what you seem to call "LCD antialising" is subpixel rendering, and it makes sense for anything drawn to the screen.

in the meantime, by using

NSBitmapImageRep *rep = [[self bitmapImageRepForCachingDisplayInRect:[self bounds]] retain];

NSImage *image = [[NSImage alloc] initWithSize:[self bounds]];
[image addRepresentation:rep];

[self cacheDisplayInRect:[self bounds] toBitmapImageRep:rep];

i was able to get back an NSImage with subpixel precision. now i am curious about whether or not it's possible to achieve the same result by directly rendering into the NSImage instance.


cheers, g.




Jonathon Mah
email@hidden




_______________________________________________

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


  • Follow-Ups:
    • Re: NSBezierPath to NSImage with subpixel rendering
      • From: Jonathon Mah <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: Re: NSBezierPath to NSImage with subpixel rendering
  • Previous by thread: Re: NSBezierPath to NSImage with subpixel rendering
  • Next by thread: Re: NSBezierPath to NSImage with subpixel rendering
  • Index(es):
    • Date
    • Thread