Skip navigation.
 
mlRe: To Draw fine rectangle
FROM : Guy English
DATE : Tue Dec 21 22:58:15 2004

> At 11:48 Uhr +0530 21.12.2004, Amit Kumar(R&D) wrote:
> >I am using NSBezierPath class to draw a rectangle with the minimum
> >line width, which draws the rectangle somewhat thic lines then I
> >want. Is there any method to draw a rectangle  with very fine (More
> >thin) lines? It would seem trivial but I can't seem to work out how
> >to do this.


Add 0.5 to your pixel coords so the line draws in the middle of the pixels.

> RTFM. This is a very FAQ. You're drawing between pixels.

Ditto.

Guy

Related mailsAuthorDate
mlTo Draw fine rectangle Amit Kumar(R&D) Dec 21, 07:18
mlRe: To Draw fine rectangle M. Uli Kusterer Dec 21, 11:19
mlRe: To Draw fine rectangle Guy English Dec 21, 22:58