• 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: To Draw fine rectangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To Draw fine rectangle


  • Subject: Re: To Draw fine rectangle
  • From: Guy English <email@hidden>
  • Date: Tue, 21 Dec 2004 16:58:15 -0500

> 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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >To Draw fine rectangle (From: "Amit Kumar(R&D)" <email@hidden>)

  • Prev by Date: Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
  • Next by Date: Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
  • Previous by thread: Re: To Draw fine rectangle
  • Next by thread: Getting Pixel Position in an image
  • Index(es):
    • Date
    • Thread