Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CG vs QuickDraw



On Jun 10, 2007, at 13:33:16, Anders Markussen wrote:

If you want the 1-pixel-wide line to not span several pixels, you simply add 0.5, so
CGContextMoveToPoint(ctx, 10.5, 4); CGContextAddLineToPoint(ctx, 10.5, 24);


If it is diagonal lines you don't want antialiasing on, there is always CGContextSetShouldAntialias.

If I remember correctly, it's been pointed out before that adding 0.5 won't always work, like when 1 pixel does not equal 1 screen pixel. Scalable UI or future hi-res displays, that sort of thing. That's why I always prefer to turn off antialiasing when I need to do this.


_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
email@hidden                       www.multi-ad.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >CG vs QuickDraw (From: Ingemar Ragnemalm <email@hidden>)
 >Re: CG vs QuickDraw (From: Philip Aker <email@hidden>)
 >Re: CG vs QuickDraw (From: "Anders Markussen" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.