• 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: why is quartz still interpolating ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why is quartz still interpolating ??


  • Subject: Re: why is quartz still interpolating ??
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 20 Apr 2004 01:00:52 +0200

At 12:41 Uhr -0400 19.04.2004, Robert Clair wrote:
I draw a bunch of single color bitmaps. Since the color may change, I drop
down into core graphics and use image masks. My problem is that I can't
get Quartz to stop interpolating - no matter what I do I wind up with a
few pixels that are neither the color that I'm drawing in nor the
background color.

Very likely you're not seeing interpolation, you're seeing Quartz's attempt at producing a drawing "between the pixels" because you specified the coordinates wrong.

In Quartz (as opposed to Quickdraw) the lines of the coordinates go through the middle of the pixels (not along the upper left, as e.g. it was in Quickdraw). So, if you want to draw a full pixel at the upper left, you don't draw at { 0, 0 }, but rather you draw at { 0.5, 0.5 }.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: why is quartz still interpolating ??
      • From: Dietmar Planitzer <email@hidden>
References: 
 >why is quartz still interpolating ?? (From: Robert Clair <email@hidden>)

  • Prev by Date: Re: NSImageRGBColorTable crash
  • Next by Date: Cocoa Bindings and textField end-editing
  • Previous by thread: Re: why is quartz still interpolating ??
  • Next by thread: Re: why is quartz still interpolating ??
  • Index(es):
    • Date
    • Thread