Re: 1 pixel width NSBezierPath issue
Re: 1 pixel width NSBezierPath issue
- Subject: Re: 1 pixel width NSBezierPath issue
- From: Andreas Mayer <email@hidden>
- Date: Wed, 19 Feb 2003 01:40:37 +0100
Am Dienstag, 18.02.03 um 19:06 Uhr schrieb Sebastian Gomez Papiol:
And NSBezierPath don't allow 1 pixel paths without antialias, for this
reason I can't use it.
Well, then don't.
I have a question, too: What do you consider an one pixel diagonal line?
With square pixels, ordered in horizontal rows, there is no such thing.
You may either use two pixels diagonal to each other, which leave two
'white' pixels on the side, effectively 'crossing' the line and making
it actually thinner than one pixel,
_x___
__x__
___x_
or you may use two pixels on the same height, which closes the gaps,
and makes the line actually thicker than one pixel (but less than two).
_xx___
__xx__
___xx_
Both are valid approximations.
I read a lot of people trying to make 1 pixel lines,
Yes. And there's no problem drawing horizontal or vertical lines, one
pixel wide.
the documentation of NSBezierPath say the width 0 value force the line
width to the minium value the draw dispositive is able to draw, and
perhaps NSBezier have a bug,
If that's the case, file a bug.
BTW: I still do not understand why you absolutely need to have that
'one pixel wide' line ...
bye. Andreas.
_______________________________________________
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.