Fading in/out images. Please help!

From: Al Murphy (almurph_at_altavista.com)
Date: 07/28/04

  • Next message: Will Hartung: "Re: Iterator Class?"
    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.


  • Next message: Will Hartung: "Re: Iterator Class?"

    Relevant Pages

    • Re: Graphics are blurry but only in iE
      ... Red X Instead of Images - Can't see or save Images/Pictures ... Change the DPI setting from Large to Normal and see if that helps. ... Pictures Do Not Show ... Right-click the Windows desktop to display the context menu. ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: Question about photos and PC output on a Panasonic plasma HDTV
      ... >> comments on how well it will display photos using the SD card slot, ... >> will be displayed at high resolution on the TV? ... Check that it handles pictures with different format to your liking ... I use an LCD-TV (1280x768 pixel) to display photos from a standard PC ...
      (alt.tv.tech.hdtv)
    • Re: Is a voxel a little cuboid?
      ... images as pictures, ... on display devices that have pixels. ... measurement performed at each pixel or voxel. ...
      (comp.protocols.dicom)
    • Re: blurry pictures
      ... Pictures Do Not Show ... I can't see JPG's or GIFS any more - red x - images missing - fuzzy ... These are the steps for changing the DPI setting on your system. ... Right-click the Windows desktop to display the context menu. ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: Old issues never die, just fade away
      ... images I try displaying in the e-mail body either by ... either don't display or when they do, they're represented by the red 'x', ... pictures in this message could not be found. ... same thing (using a jpg from another non-iconned sub folder of the same ...
      (microsoft.public.windowsxp.general)