On 18 Apr 2008, at 10:19 pm, Scott Thompson wrote:

On Apr 17, 2008, at 4:28 AM, Heinrich Giesen wrote:


Sorry, pressed the wrong button.

And: if the bezier path shall always be drawn 1 pixel wide, independent
of resolution and scaling the lineWidth should be set to 0 (zero)

While this works for PostScript, it does not work for Quartz. Quartz 2D will not draw strokes with a zero width.

Scott


Setting a line width of 0 draws a 1-pixel wide line at the resolution of the device it draws to, so on screen, that's 1/72 of an inch (approx) on a printer 1/600 inch, say. It's a useful way to isolate drawing from any CTM scaling. This is handy for drawing a selection rect outline on top of a zoomed image where you don't want the selection itself to be scaled up (among many other uses). So yes, I'd say it works - and Quartz most definitely does draw strokes with a line width of 0.


G.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to