[squeak-dev] Puzzled about Form#stencil

Bert Freudenberg bert at freudenbergs.de
Wed Nov 14 16:49:18 UTC 2012


On 2012-11-14, at 17:27, Sebastian Nozzi <sebnozzi at gmail.com> wrote:

> 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
> <triangle-sketch.png><home-gimp-100x100.png><SqueakScreen.1.jpg>



sketch305 form bits first hex
==> '16r0'

sketch1737 form bits first hex
==> '16rFFFFFF'

- Bert -




More information about the Squeak-dev mailing list