[squeak-dev] The Trunk: Graphics-nice.293.mcz
Javier Diaz-Reinoso
javier_diaz_r at mac.com
Sun May 18 20:02:02 UTC 2014
On 17/05/2014, at 16:49, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:
> Note that Graphics-jdr.176 also contained a fix for Form>>asGrayScale because current version does not correctly preserve transparency.
> The proposed fix did not seem to preserve it better, thus I placed th mcz in treated inbox.
>
Wow, that was 2 years ago I barely remember, but the bug exists.
Is about a PNG with 8 bits, like this:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rojo.png.zip
Type: application/zip
Size: 12829 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140518/cd647223/rojo.png.zip
-------------- next part --------------
if you enter in a workspace:
form1 := (ImageReadWriter formFromFileNamed: 'rojo.png').
g := form1 asGrayScale.
(SketchMorph withForm: g) openInWorld.
you obtain a morph with a white background, with my modification the background is transparent.
I only have a problem with this, the original method was from Andreas Rabb and (of course) is faster.
More information about the Squeak-dev
mailing list
|