Re: drawing 1 pixel wide lines
Re: drawing 1 pixel wide lines
- Subject: Re: drawing 1 pixel wide lines
- From: Kevin Callahan <email@hidden>
- Date: Wed, 7 Aug 2002 12:49:37 -0700
Have you tried a y offset of 0.5 ?
Kevin
On Wednesday, August 7, 2002, at 12:13 PM, Albert Russel wrote:
How do you draw 1 pixel wide completely black vertical lines?
[NSBezierPath setLineWidth: 0.0];
[NSBezierPath setDefaultFlatness: 1.0];
[NSBezierPath setLineCapStyle: NSButtLineCapStyle];
[[NSColor blackColor] set];
[NSBezierPath strokeLineFromPoint: p1 toPoint: p2];
The above gives vertical lines that are more than 1 pixel wide, I
believe to
see 2, and the lines are a little transparent. I select the color black
but
the lines are gray. When I draw 2 lines at the same position it gets
black.
Albert
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.