[Newbies] Fading a PNG

Brad Fuller brad at bradfuller.com
Mon Apr 23 00:12:48 UTC 2007


Steven Greenberg wrote:
>
> m := Morph new openInWorld.
> m visible: false.
> m visible: true.

well.. that's easy!

I would like to know how to fade in and out. I read the BitBlt way, but
I haven't tried it yet.

>
>
>
>
> On 4/22/07, *Brad Fuller* <brad at bradfuller.com
> <mailto:brad at bradfuller.com>> wrote:
>
>     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.
>     >
>     along the same lines, how can one make an object disappear, or
>     invisible? I don't mean delete the morph, but just make it
>     invisible and
>     make it visible again.
>
>     --
>



More information about the Beginners mailing list