Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Fading in/out images. Please help!
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Al Murphy
07-29-04 02:09 AM


Re: Fading in/out images. Please help!
On 28 Jul 2004 12:10:01 -0700, almurph@altavista.com (Al Murphy) wrote
or quoted :

>	The problem is though I want to *fade* each image in and out to be
>replace by the next image.

I think this would most easily be solved by looking around the net fro
Applet special effects, and just use the code.

see http://www.anfyteam.com/panjava.html

http://mindprod.com/jgloss/collections.html


--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
07-29-04 02:09 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:28 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.