• 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: Quickly drawing non-antialiased, discrete, pixels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quickly drawing non-antialiased, discrete, pixels


  • Subject: Re: Quickly drawing non-antialiased, discrete, pixels
  • From: Greg Titus <email@hidden>
  • Date: Mon, 6 Jan 2003 15:48:17 -0800

On Monday, January 6, 2003, at 03:10 PM, Dietmar Planitzer wrote:
Apparently, Quartz even takes independent line strips in the current path
into account when it checks for intersections. There may be a logic to this
- though it escapes me which one, because it introduces an asymmetry in the
libraries semantic. Compare independent line strips specified via a single
path to independent line strips specified as individual paths...

Think of intersecting line strips in a single path, painted with a color that has some alpha. If you draw the strips in a single path, the intersecting pixels get painted once (thus the need to calculate intersections). If you draw the strips in separate paths with separate strokes or fills, the pixels get painted twice and end up a different color because of the alpha blending.

This is a very important and intended asymmetry. Stroking a path needs to result in drawing the effected pixels exactly once, no matter what the composition of the path.

- Greg
_______________________________________________
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:
    • Re: Quickly drawing non-antialiased, discrete, pixels
      • From: Dietmar Planitzer <email@hidden>
    • Re: Quickly drawing non-antialiased, discrete, pixels
      • From: mathew <email@hidden>
References: 
 >Re: Quickly drawing non-antialiased, discrete, pixels (From: Dietmar Planitzer <email@hidden>)

  • Prev by Date: Porting from NeXT to OS X
  • Next by Date: Re: Unarchiving Individual Windows from a Nib File
  • Previous by thread: Re: Quickly drawing non-antialiased, discrete, pixels
  • Next by thread: Re: Quickly drawing non-antialiased, discrete, pixels
  • Index(es):
    • Date
    • Thread