Skip navigation.
 
mlRe: 1 pixel wide lines
FROM : Nat!
DATE : Thu Nov 04 22:33:25 2004

>
> On Nov 4, 2004, at 8:31 AM, Joe Esch wrote:
>

>> Before you flame me, let me say that I've looked in the archives and
>> found that questions about drawing 1 pixel wide lines using
>> NSBezierPath or Quartz have been asked many times.  The reason that
>> I'm submitting yet another question is that I am still having
>> problems and was hoping that since this has been asked so many times
>> that maybe Apple has done something to solve the problem in a nice
>> way.

>


The usefulness of my suggestion may be questionable to you, but you
could do the drawing "manually" in a bitmap and render that. Horizontal
and vertical line drawing is trivial and a bresenham or dda is pretty
quickly coded. It's kinda old-school.. I remember having done this some
time in the distant past :)

Ciao
   Nat!
------------------------------------------------------
A good dog, though a fool.
Who wants a smart dog!  -- R.A. Lafferty

Related mailsAuthorDate
ml1 pixel wide lines Joe Esch Nov 4, 17:31
mlRe: 1 pixel wide lines stephane sudre Nov 4, 17:41
mlRe: 1 pixel wide lines Greg Titus Nov 4, 18:16
mlRe: 1 pixel wide lines Nat! Nov 4, 22:33
mlRe: 1 pixel wide lines Scott Ribe Nov 6, 23:30