[Newbies] Fading a PNG
greenbes at puzzlingevidence.net
Mon Apr 23 06:37:04 UTC 2007
Thanks for the pointer! I didn't try that code in the workspace, but if you
enable "haloTransitions" using the Preferences browser then the halos fade
in and out.
On 4/22/07, Bert Freudenberg <bert at freudenbergs.de> wrote:
> On Apr 23, 2007, at 0:44 , Steven Greenberg wrote:
> > I have a PNG image that I'd like to display fading out. I tried
> > the BitBlt method suggested by "Team RAR" to fade the image, but I
> > can't make it work.
> > The image loads properly from a file and displays fine as an
> > ImageMorph. I have been able to use a TransformationMorph to
> > rotate and scale it, and PNG transparency is working properly.
> > Is the "Team RAR" BitBlt method the only way, or are there
> > alternatives?
> > I'm running a 3.9 image, and my display depth is set to 32 bits.
> Normally you would just use an alpha-blending canvas. See HaloMorph
> fadeIn/fadeOut and draw methods. To try those halos, enable this:
> Preferences enable: #haloTransitions
> Now when I tried then the halo icons do not actually show until alpha
> is one. No idea why that is.
> - Bert -
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners