[NEWBIE] how to.. ? drawing problems !!
[NEWBIE] how to.. ? drawing problems !!
- Subject: [NEWBIE] how to.. ? drawing problems !!
- From: Tommaso Pecorella <email@hidden>
- Date: Sat, 28 Jul 2001 11:55:32 +0200
Hi, just a very newbie question: I know how to draw a NSBezierPath
(even a complex path), however I still can't figure out how to draw a
*single* point and a "hairline" line.
For my own purposes, I need o draw in non-antialias mode, so I
disabled it, however no matter how I stroke the line or I set it's
lineWidth (even 0.0), it's minimal width is 2 pixels.
The workaround is to fill a rect with size (1, whatever), but it
works only for horizontal and vertical lines.
The problem also affects stoked NSBezierPath, so to draw an hairline
stoke of a complex path I have to stroke it and fill the inne with a
copy of the background.... terrific !!
The workaround works for the single pixel too, however it seems to be
a little complex and to add an huge overhead for a simple task like
drawing a single pixel...
Well, I am sure that the problem is that I am a newbie, so, where is my error ?
Regards, Tom ;-{))
--
--------------------------------------------------------------------------
Ing. Tommaso Pecorella
snail-mail: e-mail :
via del Pergolino 8/a
mailto:email@hidden
50139 Firenze - ITALY
RSA Key fingerprint = 232A D084 AD2F 7815 3D44 AFF0 AA52 A3AA
--------------------------------------------------------------------------