• 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: NSBezierPath + thin lines + antialias = :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath + thin lines + antialias = :(


  • Subject: Re: NSBezierPath + thin lines + antialias = :(
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 10 Feb 2015 11:23:50 -0800

> On 2015 Feb 10, at 05:36, Charles Jenkins <email@hidden> wrote:
>
> This may explain why my purchase of a program that outputs code for vector images resulted in disappointment.

Counterintuitive at first, but, yes :))

I’ve always wondered why, when you’re dragging a window around a non-Retina screen, the anti-aliasing doesn’t show a “comb filter” kind of effect, with different lines getting fuzzy and sharp as they are dragged on and off their pixels.  Looking at this closely today, I think the explanation may be that

  (1) Although you need to look carefully, Apple has constrained
       dragging windows to “snap" to the grid of backing pixels.
       You cannot move a window by one half pixel.
  (2) A window’s intrinsic scrollers, title bars, etc. are also
       on a 1-pixel grid.
  (3) Any control or view that you place into Interface Builder
       must be on a 1-pixel grid.  I just tried entering a decimal
       fraction, 139.5, and after I ended editing, it was rounded
       down to 139.

So I think that’s why this has always been a mystery to me:  Apple has layered on several contrivances to hide the ugly truth, and it works until you start adding your own views that have fractional pixel features.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSBezierPath + thin lines + antialias = :(
      • From: Quincey Morris <email@hidden>
References: 
 >NSBezierPath + thin lines + antialias = :( (From: Jerry Krinock <email@hidden>)
 >Re: NSBezierPath + thin lines + antialias = :( (From: Jens Alfke <email@hidden>)
 >Re: NSBezierPath + thin lines + antialias = :( (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Re: Disable Text Replacement
  • Next by Date: Re: NSBezierPath + thin lines + antialias = :(
  • Previous by thread: Re: NSBezierPath + thin lines + antialias = :(
  • Next by thread: Re: NSBezierPath + thin lines + antialias = :(
  • Index(es):
    • Date
    • Thread