• 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: feeble anti-aliasing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feeble anti-aliasing


  • Subject: Re: feeble anti-aliasing
  • From: Colin Howarth <email@hidden>
  • Date: Wed, 7 Oct 2009 23:26:06 +0200

On 7 Oct, 2009, at 23:13, Dave Keck wrote:

Try applying a 0.25 or 0.5 pixel shadow that's the same color as
whatever you're drawing. (This technique has worked very well for me
in the past for getting a smoother look.)

I'll give it a go. In fact eventually I'll end up calculating what the values *should* be
and check them in Photoshop :-)


Also, I've found that offsetting my drawing code by fractions of
pixels can help, but usually in the opposite case where I need crisper
drawing.

That's described in the 'Doing Pixel-Exact Drawing' section of 'The Cocoa Drawing Guide'
- but in a less haphazard way :-)


I've often wondered why Quartz doesn't allow you to specify a float
value for the degree of antialiasing, instead of restricting you to
enable/disable. For me at least, this would be very useful. 'Spose I
should file a bug about that...

I don't know enough about what Quartz is doing. For instance, does it calculate the coverage
of a pixel (i.e. the fraction covered) as a float and then use that times 255 for pixel values
(for black on white) giving 256 steps. Or does it quantize down to 16 steps, for example?
I expect it's using a double and compositing with alpha blends and all the rest :-)
_______________________________________________


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: 
 >feeble anti-aliasing (From: Colin Howarth <email@hidden>)
 >Re: feeble anti-aliasing (From: Alastair Houghton <email@hidden>)
 >Re: feeble anti-aliasing (From: Colin Howarth <email@hidden>)
 >Re: feeble anti-aliasing (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: feeble anti-aliasing
  • Next by Date: Understanding CFMakeCollectable (was: EXC_BAD_ACCESS when -fobjc-gc)
  • Previous by thread: Re: feeble anti-aliasing
  • Next by thread: Re: feeble anti-aliasing
  • Index(es):
    • Date
    • Thread