• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to draw hairline ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw hairline ?


  • Subject: Re: How to draw hairline ?
  • From: "Julien Guimont" <email@hidden>
  • Date: Fri, 13 Feb 2004 23:30:57 -0500 (EST)

Hello,

Please make a search on the cocoa list before sending message.

So here is the answer on a practical note (theory will be found with a
little googling of your part). You have to make the bezier path1 pixel
thick and draw on 0.5 pixel alignment (OS X does some anti aliasing and
drawing on 0 makes the line fall between 2 pixel thus antialised).

Bye

Julien Guimont
www.juggysoft.com

> Message: 6
> To: Cocoa <email@hidden>
> From: Bob Miller <email@hidden>
> Subject: How to draw hairline ?
> Date: Fri, 13 Feb 2004 10:54:29 -0500
>
> Hello,
>
> This is probably a basic question but, does anyone know how to draw
a
> hair-line using NSBezierPath ? I've tried setting the line thickness to
> 0 and to 1 and it seems to draw thicker than that. I now there are
> device artifacts but I've seen it done in other appls. I also tried
> just drawing a very thin rect and that doesn't seem to help either. Any
> ideas would be most appreciated.
>
> Thanks in advance,
> Regards,
> Bob M
_______________________________________________
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.

  • Follow-Ups:
    • Quartz theory (Re: How to draw hairline ?)
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: static objects "autoreleased with no pool in place - just leaking"
  • Next by Date: Re: Using Categories
  • Previous by thread: Re: How to draw hairline ?
  • Next by thread: Quartz theory (Re: How to draw hairline ?)
  • Index(es):
    • Date
    • Thread