Odd behavior with peeker
Bob Arning
arning at charm.net
Thu Sep 4 19:14:36 UTC 2003
On Thu, 4 Sep 2003 13:58:17 -0500 Javier Diaz-Reinoso <javier_diaz_r at mac.com> wrote:
>I don't understand why, because pixelValueAt: is defined as:
> ^ (BitBlt current bitPeekerFromForm: self) pixelAt: aPoint
>
>apart from the extra overhead of calling 'BitBlt current
>bitPeekerFromForm:' for each pixel, I think is the same, so what is the
>problem?
Well, not quite, Javier. Your TestForm inherits from ColorForm which implements
pixelValueAt: aPoint
"Return the raw pixel value at the given point. Typical clients use colorAt: to get a Color."
"Details: To get the raw pixel value, be sure the peeker's colorMap is nil."
^ (BitBlt current bitPeekerFromForm: self) colorMap: nil; pixelAt: aPoint
which is a little different.
Cheers,
Bob
More information about the Squeak-dev
mailing list
|