Image Fade! - doesnt want to fade!

Hi all,
Hope someone can help me.
I have found a piece of code from Codelifter.com (
http://www.codelifter.com/main/javas...lideshow2.html)
enabling me to have a images fading on top of each other in a
slideshow effect. However, somewhere down the line when placing in
the code, i have obviously gone wrong because the first picture
fades out but the others then do not fade in.
Does this part of the code below look wrong to anyone or does
anyone know why it may not be working!
<body
onload="runSlideShow();MM_preloadImages('../images/mainButtons/homeOver.jpg','../images/m ainButtons/gowerOver.jpg','../images/mainButtons/mumblesOver.jpg','../images/mainButtons/m arinaOver.jpg','../images/mainButtons/moreOver2_15.jpg','../images/find
buttons/findHomeOver_02.gif','../images/find
buttons/findHome_03.gif','../images/find
buttons/findHomeOver_03.gif','../images/find
buttons/findHome_02.gif')">
<script
language="JavaScript1.2">mmLoadMenus();</script>
Thanks Nikki

Yes thats done the trick, code as follows:
private static Image resize2D(Image srcImage, int size)
        int w = srcImage.getWidth(null);
        int h = srcImage.getHeight(null);
        // Determine the scaling required to get desired result.
        float scaleW = (float)size / (float)w;
        float scaleH = (float)size / (float)h;
        System.out.println("Image Resizing to size:"+size+"w:"+w +":h:"+h+"scaleW:"+scaleW+"scaleH"+scaleH);
        // Create an image buffer in which to paint on.
        BufferedImage bi = new BufferedImage(size,size,BufferedImage.TYPE_INT_ARGB);
        // Set the scale.
        AffineTransform tx = new AffineTransform();
        tx.scale(scaleW, scaleH);
        // Paint image.
        Graphics2D g2d = bi.createGraphics();
        g2d.drawImage(srcImage, tx, null);
        g2d.dispose();
        return bi;
BufferedImage newImage = resize2D(origImage, 200);
origImage.flush();
origImage=null;

Similar Messages

  • I tried linking the facebook contacts to my phone but for some reason the contacts doesnt wants to show the FB images even thought it says that it was sync. What could be the issue? How can it be fixed so i could get my facebook lined up to my contacts?

    I tried linking the facebook contacts to my phone(iPhone4s) but for some reason my conatcts doesnt wants to show the FB images in my contacts even though it said facebook contacts were sync. What could be the issue? How can it be fix so I could sync my contacts with Facebook?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • How can I increase the transition time between songs on my IPOD?  I do not want a fade.

    How can I increase transition time between songs on my IPOD?  I do not want a fade.

    If Crossfade is OFF, the fadeout is actually part of the recording, so you won't be able to change how it fades.
    If you want to make the silence (gap) between songs longer, there is only one setting I know of that relates to the gap between songs, and it is in iTunes.
    Do a Get Info on a song in iTunes (File -> Get Info OR Cmd-I from keyboard) and go to the Options tab in the Info window.  There is a setting called Part of gapless album.  If that checkbox is checked, the songs are played with no gap.
    I don't know of any other setting in iTunes or the iPod that makes the gap between songs longer.

  • I want to fade music in and then out

    I've successfully added audio portions to the slideshow but I need more control over the start and stop point and would love to fade the music in and out instead of just abruptly start and stop during the slides.. Is there a way to tweak the music clip and fade in and out?

    I'm not sure what it is your asking here.
    iPhoto cannot manipulate sound, so if you want to fade in and out you need to use another app,
    Alternatives to iPhoto's slideshow include:
    iMovie, on every Mac sold.
    Others, in order of price: PhotoPresenter  $29
    PhotoToMovie  $49.95
    PulpMotion  $129
    FotoMagico $29 (Home version) ($149 Pro version, which includes PhotoPresenter)
    Final Cut Pro X $299
    It's difficult to compare these apps. They have differences in capability - some are driven off templates. some aren't. Some have a wider variety of transitions. Others will have excellent audio controls. It's worth checking them out to see what meets your needs. However, there is no doubt that Final Cut Pro X is the most capable app of them all. You get what you pay for. 

  • Adding video fade out or cross fade to specific spot in clip

    I have a clip that has a visual glitch at the very end. I want to fade the video prior to the glitch but keep the audio. The glitch happens about 20 frames before end of clip. So I would like to just fade the visual keeping the audio intact, or just edit the video marrying the parts before and after glitch while maintaining the audio. So far I can't figure out how to place a transition at a specific spot in the timeline of a clip. I can only place them between different clips.

    Hi
    As to Audio
    I think that Extract Audio was avail in iMovie 4. Use this (Advance menu/Extract Audio)
    As to transitions
    Put a black photo (.jpg) at very end - Now You can apply transition.
    Yours Bengt W

  • My 'recently added' playlist doesnt want to sync correctly on my iphone5

    It's stuck and doesnt want to sync any new music i add.

    It's not under Devices.  You click on the name of your phone on the left side of iTunes, then to the right you will see a series of tabs that contain your sync settings, such as Summary, Info, etc.  One of these is Music.  Click on this tab heading and you will see Sync Music, with a checkbox next to it (see image below).  Uncheck this setting and sync to delete all music from your phone.  Re-check it and sync again to transfer your music back to your phone.

  • Image capture doesnt detect camera plugged in, why ?

    HI all I only found out how good image capture was a few weeks ago when I wanted to backup ALL the photos on my iPad my MBP detected the iPad instantly
    my mate plugs his camera into his MBP and image capture doesnt know it is there waiting for photos to be transferred, please someone why doesn't the camera get detected ?

    Well done that man, i should have seen that myself
    Tim

  • Fade in, hold and fade out in CS5

    Is it possible to make a fade in, hold and fade out one picture at time in InDesign CS5? I don't want to do a click-event to change object states. I want to set three different time-laps to animate one picture.

    Please repost in the InDesign forum. This forum is for general design issues, not how to use a program to create a specific effect.

  • NOT cross fade...just FADE OUT

    I am having a little trouble getting just a fade into at the beginning and/or fade out at the end.
    it keeps changing the length of the clip or radically changing the length of the fade.
    also looks like it puts in an entire fadein/out on things that I just want to fade out or just fade in.
    need some help here.
    I have tried everything I can (messing with length..placement...start/stops) of the trans and maybe I just dont get it but I am not a novice to editing. this thing is frustrating.

    Switch on the "Toggle Clips Overlay" button. (The zig zag button at the bottom left of the timeline window.
    You can then use keyframes near the beginning and end of your video to drag the Opacity Line down to make a fade-in and a fade-out.

  • JPEG/PSD issue--I open a jpeg and edit it (levels, crop) and then "save as" and the save as option shows there are now levels in the image and it wants to save it as a .psd file or a copy with layers.  What am I doing that has these settings appear?

    JPEG/PSD issue--I open a jpeg and edit it (levels, crop) and then "save as" and the save as option shows there are now levels in the image and it wants to save it as a .psd file or a copy with layers.  What am I doing that has these settings appear?

    16bit? Pixels extending beyond the canvas? (from a crop with delete unused pixels turn off).  Have you previously been saving PSD files?
    IME you sometimes have to tell Photoshop that the first save of a session is JPG, and it remembers from there on.  The way to 'tell' Photoshop that JPG, or PDF, or PNG etc are now your preferred format is to Ctrl (Cmd) click on that format in the Save As drop down list.  So long as the file does not have parameters that your chosen format does not support, then this should work for you.
    [EDIT]  Just noticed that you did include 'Crop' in the subject line.  Do you have 'Delete cropped pixels' checked?

  • My ipod touch doesnt want show in itunes but it shows as a device on my computers desktop what should i do?

    My ipod touch doesnt want show in itunes but it shows as a device on my computers desktop what should i do?

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • Can i create a new function (Fade out, Amplify down, Fade In)

    Hi,
    I am using Adobe Audition version 3.0
    Is it possible to define a new function, so that i can select a short piece of the audio file within Edit View, so that the first 5 miliseconds (of the selected piece of audio) will be applied a Fade Out, and the last 5 miliseconds will be applied a Fade In, and in-between will be Amplified by -12dB.
    I have to do this hundreds of times within a 1 hour recording of speech which has many short pauses, in order to remove small external noises between the words.
    I normally select (one by one) the space/pause between the words and amplify this by -12 dB.  Then i select the preceeding 5 miliseconds and apply a Fade Out.  And the 5 miliseconds after the pause a Fade In.
    I have only discovered today how to create short-cuts, so at least i have a short cut for the Amplify, Fade Out and Fade In.
    But it would be great, if i could somehow define a function as i described above, to do all 3 steps within the one function.
    Any help or tips appreciated.
    Dave

    [email protected] wrote:
    Hi,
    I am using Adobe Audition version 3.0
    Is it possible to define a new function, so that i can select a short piece of the audio file within Edit View, so that the first 5 miliseconds (of the selected piece of audio) will be applied a Fade Out, and the last 5 miliseconds will be applied a Fade In, and in-between will be Amplified by -12dB.
    I have to do this hundreds of times within a 1 hour recording of speech which has many short pauses, in order to remove small external noises between the words.
    I normally select (one by one) the space/pause between the words and amplify this by -12 dB.  Then i select the preceeding 5 miliseconds and apply a Fade Out.  And the 5 miliseconds after the pause a Fade In.
    I have only discovered today how to create short-cuts, so at least i have a short cut for the Amplify, Fade Out and Fade In.
    But it would be great, if i could somehow define a function as i described above, to do all 3 steps within the one function.
    Any help or tips appreciated.
    Dave
    You might be able to - but this is going to require quite a complex script that would need some serious editing by hand, and even then I'm not absolutely sure that it would work. The previous problem with this sort of script was that due to an 'anomaly' in the program, the - (minus) sign wouldn't work in a script, but I think that with the 3.0.1 patch, it does again. And even with this working, it's going to require some experimentation. Initially you need to refer to ryclark's method of entering absolute values which you will find here, and then you have to find a way to realise the whole operation a step at a time. You'd have to handle the fade out and the fade in separately, but where I think you might come considerably unstuck is trying to fade to -12dB for the middle section - that's probably the bit that would perhaps require slightly more than might actually be possible. I'd be quite happy to be proved wrong about that though!
    I'm afraid that there's no documentation at all for the scripting language - this is something that Adobe, and Syntrillium before them, have never quite managed to provide, despite promising me some a while back. The good news though is that if you can make this work, then it's relatively straightforward to assign a shortcut key to it. But I should warn you now that this would be one hell of a script...

  • My iphone doesnt want to start.all it shows is the apple icon.nothing more.i have tried holding the home button together with the lock button.what can i do .thanks

    my iphone 4 doesnt want to start . all it shows is the apple icon.i have tried holding the home button together with the lock button. nothing seems to work . please help.

    Plug the iPhone in with the Wall Charger. Then while plugged in do the Reset again, hold both Home and Power buttons until the iPhone Restarts. This usually begins to happen in less than 20 seconds time.
    If you this does not work you can try to Restore the Firmware on your iPhone. If you decide to do this, connect your iPhone to your computer with iTunes open. Hold both the Home and Power buttons until the iPhone is detected by iTunes in Recovery Mode, this takes about 20 seconds time. Restore your iPhone.
    If this does not work, you can try to Restore the Firmware on your iPhone in DFU Mode. Connect your iPhone to your computer with iTunes open. Hold both Home and Power buttons for exactly 10 seconds, release the Power Button and keep holding the Home Button until iTunes recognizes the iPhone in Recovery Mode, about 20 seconds more time. Restore the iPhone.
    If this does not work and you have Warranty or AppleCare Coverage take your iPhone to Apple for resolution of the problem.

  • Ps cs6 on mac. since installing yosemite, when working on an image if i want to change tool, via shortcut of wacom pen click, i now have to click on the image title bar, how can i fix this please?

    ps cs6 on mac. since installing yosemite, when working on an image if i want to change tool, via shortcut or wacom pen click, i now have to click on the image title bar, how can i fix this ?

    @Naiks, having suffered through unsuccessful synching attempts for Calendar and Contacts myself, l would suggest you try the following:
    UNINSTALL iCloud control panel from your PC. Seems silly, but do it.
    Go into Outlook, and look at the very top menu. Click FILE, then ACCOUNT SETTINGS, then click the popup box.
    You will see a list of all your email accounts. Make sure that ONE of them has a checkmark against it. If not, select the account your want as your default, and click "set as default.
    Exit out of Outlook and reboot your machine.
    Now reinstall iCloud, check CALENDAR and CONTACTS, and do as instructed when prompted.
    Reboot for good luck and now launch OUTLOOK. All that remains is to locate your iCloud Contacts and Calendar files, and make them your default.
    IMPORTANT: Don't panic if you can't find your contacts -- they're there. Click CONTACTS and you'll see you have several available contact files. Locate the one label "iCloud" in grey type. Right-click on it, select PROPERTIES, then click the Outlook Address Book tab. Check the box that says something like "Make this my default Outlook Address Book." Keep clicking "apply" and "okay" until you've exited out of the dialog box maze.
    You may have to do something similar with your Calendar files. I dd not, but if you need to, do it.
    Everything should now sync pretty seamlessly.
    I didn't have the exact same problem as you, but my dilemma was close enough. Good luck!
    Arthur P. Johnson

  • I have linked images that I want to resize horz & vert to (96.6% x 97.8%)

    I have linked images that I want to resize horz & vert to (96.6% x 97.8%) and then center within the frame.
    I'd like to have an applescript to do them all, so I don't have to manually do them each, each time.
    Any help would be appreciated.
    Thanks
    Ty

    Harbs @ in-tools has a script that could probably help:
    http://in-tools.com/article/scripts-blog/scale-graphics-script/

Maybe you are looking for