Fading in/out images. Please help!
From: Al Murphy (almurph_at_altavista.com)
Date: 07/28/04
- Previous message: Will Hartung: "Re: What does "refactoring" of a project mean ?"
- Next in thread: Roedy Green: "Re: Fading in/out images. Please help!"
- Reply: Roedy Green: "Re: Fading in/out images. Please help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jul 2004 12:10:01 -0700
Hi,
Wondering can you help me please. I've written a small applet that
uses a thread to display small pictures one after another. The images
are small and stay on screen for about 3 seconds. It then abruptly
disppears to be replaced by the next image.
It's pretty simple stuff really. Nothing terribly sophisticated.
For example to load up an image:
Image img = getImage(getcodeBase(), "1.jpg");
etc
The thread stuff is pretty straighforward too:
public void run()
{
Thread myThread = Thread.currentThread();
while(imageThread = mythread)
{
repaint();
image += image; // increment image
}
} // end run()
The problem is though I want to *fade* each image in and out to be
replace by the next image. However I don't know how to do this
exactly. Can anyone out there help me please? Any
suggestions/comments/
code-samples would be most appreciated....
Cheers,
Al.
- Previous message: Will Hartung: "Re: What does "refactoring" of a project mean ?"
- Next in thread: Roedy Green: "Re: Fading in/out images. Please help!"
- Reply: Roedy Green: "Re: Fading in/out images. Please help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|