[squeak-dev] Puzzled about Form#stencil

Sebastian Nozzi sebnozzi at gmail.com
Wed Nov 14 16:27:22 UTC 2012


Hello Squeakers!

I am really puzzled about this: I have 2 PNGs, both with transparent
pixels. Although both are rendered accordingly when I ask for the
"stencil" (map of transparent vs. opaque pixels) one of them gives me
the correct image, whereas for the other I just get a black box.

Using the files attached, "triangle-sketch" gives me the correct mask
and "home-gimp..." gives me the black box.

I evaluate this in a workspace, first by d&d the files into Squeak
(4.3, all-in-one, Mac), and then d&d into the workspace:

(SketchMorph withForm: sketch305 form stencil) openInHand.
(SketchMorph withForm: sketch1737 form stencil) openInHand.

I show the situation in the attached screenshot.

Any idea why this is so? Thanks in advance!

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: triangle-sketch.png
Type: image/png
Size: 604 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20121114/841d24cb/triangle-sketch.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: home-gimp-100x100.png
Type: image/png
Size: 18640 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20121114/841d24cb/home-gimp-100x100.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqueakScreen.1.jpg
Type: image/jpeg
Size: 27162 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20121114/841d24cb/SqueakScreen.1.jpg


More information about the Squeak-dev mailing list