[BUG] forms with bad alpha values?
Ned Konz
ned at bike-nomad.com
Sun Sep 7 16:42:36 UTC 2003
I've been trying to fix the problem with disappearing Objects Tool
buttons. I've got it all fixed except for the Paint tool. What's
happening is that its form (a standard form) is rendering as
transparent in depth 32.
You can see it by doing:
f _ (ScriptingSystem formAtKey: #Painting) asFormOfDepth: 32.
b _ Bag new.
0 to: f height - 1 do: [ :y |
0 to: f width - 1 do: [ :x |
b add: (f colorAt: (x at y)) ]].
b sortedCounts
which yields:
a SortedCollection(2132->Color transparent)
However, if I do:
((ScriptingSystem formAtKey: #Painting) asFormOfDepth: 32) openAsMorph
I see the image.
Any ideas?
Thanks,
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|