• 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: Unwanted scaled line width
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unwanted scaled line width


  • Subject: Re: Unwanted scaled line width
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 25 Oct 2004 15:06:08 +0200

At 11:52 Uhr +0200 25.10.2004, stephane sudre wrote:
aPoint = NSMakePoint(0.0, 0.0);
bPoint = NSMakePoint(0.0, h);
[NSBezierPath setDefaultLineWidth:(width / scaleFactor )];
[NSBezierPath strokeLineFromPoint:aPoint toPoint:bPoint ];

NSMakePoint(0.5f,0.0f);

NSMakePoint(0.5f,h);

That usually works for single point wide line

What Stephane is saying is that you're drawing "between" the pixels on the screen, so Quartz is heavily anti-aliasing your line. His code moves the line "into the middle" of the pixels.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >Unwanted scaled line width (From: Lorenzo <email@hidden>)
 >Re: Unwanted scaled line width (From: stephane sudre <email@hidden>)

  • Prev by Date: Re: key codes
  • Next by Date: Re: [newbie]: resizing a view
  • Previous by thread: Re: Unwanted scaled line width
  • Next by thread: NSBrowser and setPath
  • Index(es):
    • Date
    • Thread