Re: why is quartz still interpolating ??
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.