Re: Unwanted scaled line width
Re: Unwanted scaled line width
- Subject: Re: Unwanted scaled line width
- From: "M. Uli Kusterer" <email@hidden>
- Date: Mon, 25 Oct 2004 15:06:08 +0200
At 11:52 Uhr +0200 25.10.2004, stephane sudre wrote:
aPoint = NSMakePoint(0.0, 0.0);
bPoint = NSMakePoint(0.0, h);
[NSBezierPath setDefaultLineWidth:(width / scaleFactor )];
[NSBezierPath strokeLineFromPoint:aPoint toPoint:bPoint ];
NSMakePoint(0.5f,0.0f);
NSMakePoint(0.5f,h);
That usually works for single point wide line
What Stephane is saying is that you're drawing "between" the pixels
on the screen, so Quartz is heavily anti-aliasing your line. His code
moves the line "into the middle" of the pixels.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden