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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com