[Newbies] How to use Form pixelCompare:with:at:

Herbert König herbertkoenig at gmx.net
Tue Jan 7 14:19:41 UTC 2014


Form>>pixelCompare:with:at: seems to always return 0.

I use it like
|pict1 pict2|
pict1 := (Form extent: 100 at 100 depth: 32) fillBlack.
pict2 := (Form extent: 100 at 100 depth: 32) fillWithColor: Color red.
pict1 pixelCompare: pict1 boundingBox with: pict2 at: 0 at 0

As I get the same result in a 4.4 and a 3.8 image I guess I don't 
understand how it's used. No senders in either image.

Any help is appreciated.



More information about the Beginners mailing list