[FIX] ImageMorphTranslucentFix-dgd

DiegoGomezDeck at ConsultAr.com DiegoGomezDeck at ConsultAr.com
Tue Sep 7 15:40:13 UTC 2004


from preamble:

"Change Set:		ImageMorphTranslucentFix-dgd
Date:			7 September 2004
Author:			Diego Gomez Deck

Support for forms with transparent color in ImageMorph.

One line change in ImageMorph>>drawOn: to send #translucentImage:at:
instead of #paintImage:at:

To take benefit from this feature you have to use 32 bits depth. (In
lower resolutions the result is the same than today).

Evaluate the following before and after this changeset to see the
difference.

| stream form |
stream _ HTTPSocket httpGet:
'http://swiki.agro.uba.ar/small_land/uploads/234/transparent-test.png'.
stream binary; reset.
form := ImageReadWriter formFromStream: stream.
ImageMorph new image: form; openInWorld.

"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ImageMorphTranslucentFix-dgd.cs.gz
Type: application/octet-stream
Size: 675 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040907/6fb563a2/ImageMorphTranslucentFix-dgd.cs.obj


More information about the Squeak-dev mailing list