Resizing a transparent GIF

Hi There,
I am having trouble getting a transparent gif to resize correctly while preserving the transparency.
I am using the following GIF library to write my image to file:
http://www.shetline.com/cgi-bin/java_formatter.cgi?src=../html/java/org/shetline/io/GIFOutputStream.java&tabwidth=3&log=true
If I load in a gif image and send it straight to the GIFOutputStream, it preserves the transparent level. If I resize the image and send that to the GIFOutputStream, it loses the transparency. This is all happening in a JavaBean called by a Servlet (I am running in headless mode).
The code to resize the image reads:
Image image = Toolkit.getDefaultToolkit().createImage(originalImage);
MediaTracker mediaTracker = new MediaTracker(new Container());
mediaTracker.addImage(image, 0);
mediaTracker.waitForAll();
ByteArrayOutputStream out = new ByteArrayOutputStream();
BufferedImage thumbImage = new BufferedImage(40, 40, BufferedImage.TYPE_INT_ARGB);
Graphics2D graphics2D = thumbImage.createGraphics();
graphics2D.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), this);
// Encode the image as a GIF
Color transparency = getGIFTransparency(thumbImage);
if (transparency == null) {
GIFOutputStream.writeGIF(out, thumbImage, 5);
} else {
GIFOutputStream.writeGIF(out, thumbImage, 5, transparency);
The getGIFTransparency method reads:
private Color getGIFTransparency(Image thisImage) {
MediaTracker mediaTracker = new MediaTracker(new Container());
mediaTracker.addImage(thisImage, 0);
try {
mediaTracker.waitForID(0);
} catch (InterruptedException e) {
Logger.addError(e.toString());
PixelGrabber grabber = new PixelGrabber(thisImage, 0, 0,
thisImage.getWidth(this),
thisImage.getHeight(this),
false);
try {
grabber.grabPixels();
} catch (Exception e) {
Logger.addError(e.toString(), this, "getGIFTransparency");
if (grabber.getColorModel() != null) {
ColorModel colorModel = (ColorModel) grabber.getColorModel();
if (colorModel.getTransparency() != -1) {
return new Color(colorModel.getRGB(colorModel.getTransparency()));
return null;
Any ideas on what I am doing wrong?
Thanks in advance,
Ben

I'm having a similar problem, not exactly with Java 2D but I didn't find a JAI forum:
when I create a new image from 2 BufferedImages, I also have no transparency (and just "add" changes colors because all components of the color are added to each other and green + red = yellow on the screen). I think it has something to do with the initialisation of BufferedImage, but I haven't solved the problem yet. The API says something about BufferedImage being opaque by default. I suppose you have to use a ColorModel in the constructor which is saying that your image is Transparency.Translucent.
If this solves the problem (or if something else works), please do post here, cause I'm looking for a solution too!
Greetings,
Saskia.

Similar Messages

  • Resize BufferedImage of a Transparent GIF PNG JPG

    i must be losing my mind.
    i use this same code in another program and it works fine.
    first the images were transparent PNGs but then i changed
    them to non-transparent GIFs and then JPGs.
    no errors are thrown - but the images are being drawn at
    their original size.
    ive tried 3 different resizing methods and none work.
    why doesnt this code work:
    BufferedImage wp = ImageIO.read(new File("" + dir + "wp.gif"));
    resize(wp);
    public void resize(BufferedImage bi){
      AffineTransform tx = new AffineTransform();
         double xsc = ( sx ) / ( (double) bi.getWidth() );
         double ysc = ( sy ) / ( (double) bi.getHeight() );
        tx.scale(xsc, ysc);
        AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR);
        bi = op.filter(bi, null);
    }

    public void resize(BufferedImage bi){
        bi = op.filter(bi, null);
    }The variable in your "resize" method is a local variable. Reassigning a value to it does not change anything outside the method. You will have to return the new value of "bi" or reassign the instance variable to the filtered image:
        wp = op.filter(bi, null);
    import java.awt.*;
    import java.awt.geom.AffineTransform;
    import java.awt.image.*;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class ImageSizing
        BufferedImage orig;
        public ImageSizing(BufferedImage image)
            orig = image;
        private BufferedImage scale(BufferedImage bi)
            AffineTransform tx = new AffineTransform();
            tx.scale(0.80, 0.80);
            AffineTransformOp op = new AffineTransformOp(tx,
                                             AffineTransformOp.TYPE_BICUBIC);
            return op.filter(bi, null);
        private JPanel getPanel()
            JPanel panel = new JPanel(new GridLayout(1,0));
            panel.add(new JLabel(new ImageIcon(orig), JLabel.CENTER));
            panel.add(new JLabel(new ImageIcon(scale(orig)), JLabel.CENTER));
            return panel;
        public static void main(String[] args) throws IOException
            String path = "images/bclynx.jpg";
            BufferedImage bi = ImageIO.read(ImageSizing.class.getResource(path));
            ImageSizing test = new ImageSizing(bi);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test.getPanel());
            f.pack();
            f.setLocation(200,200);
            f.setVisible(true);
    }

  • Transparent Gif Background?

    Hello,
    I've been trying to make a gif with a transparent background, however I've been having a few problems with it.
    While the gif does start fine and the background is transparent at the beginning, after a few frames the background color would come up and then after a few frames more it'll be transparent again, then colored again.
    It's really troubling since I've been stalking every forum I could find on the subject, however my research had deemed fruitless.
    The best I could find out is that when I change its palette on the 'Publish settings' to either Web 216 or Web Snap Adaptive--the background stays transparent! However in return, the colors of the gif turn really ugly. The only palette setting I could go with that won't ruin its colors is 'Adaptive' of course, but I really want it to be transparent and it would absolutely not give me that choice. The other option for the palette choice is Custom which also makes the background transparent--however I don't know what palette to use for it since even if I chose the photo itself as a palette resource the colors still come out undesireable. I'm not really sure what the best 'palette choice' is for custom. (do you have a specific file to use for that?)
    Anyways I would love it if I could get some help figuring this out! It seems simple enough, but I really can't for the love of me figure it out.

    Normally in transparent GIF creation only one color can be used to define the transparency.  It sounds like somewhere along the line your background color is changing such that it no longer matches the transparency color.

  • Best way to edit out a white background and make a transparent gif

    I have an image I purchased but need to make it into a gif. It already has a white background but when I use the magic wand it chops little bits of the edge of the images up.
    Is there an easier way of editing the white out of this background and making a transparent gif?
    I am using Adobe Photoshop CS2
    Image is attached to take a look.
    Thanks, I appreciate any help with this.
    Nick

    Worked perfect at a tolerance of 10, didn't know what that was for before
    Thanks!
    Nick

  • Does Keynote 6.0 no longer support Transparent GIF or Quicktime Animations?

    So, I have some sample files here:
    Bees and Honey Clear Quicktime
    http://www.presentermedia.com/blog/wp-content/uploads/2013/10/beehive_bees_400_c lr_12723.mov
    Bees and Honey Clear GIF
    http://www.presentermedia.com/blog/wp-content/uploads/2013/10/beehive_bees_150_c lr_12723.gif
    Bees and Honey Green Background Quicktime
    http://www.presentermedia.com/blog/wp-content/uploads/2013/10/beehive_bees_12723 _grn.mov
    Bees and Honey Blue Background GIF
    http://www.presentermedia.com/blog/wp-content/uploads/2013/10/beehive_bees_12723 _blue.gif
    Moving on...
    At my company, we create images, animations, video backgrounds and templates for PowerPoint and Keynote etc.  Keynote '09 (iwork '09) and PowerPoint 2008 and 2011 on the Mac, all work.  Now we're hearing that the transparent backgrounds are no longer being recognized (black background instead of clear).  Is anyone able to check this for me and let me know if there is a workaround or something? I can't find any documentation on how Quicktime changed with Maverick or Keynote 6, so need to do real world testing I'm only running '09 on my Mac and won't have Keynote 6 for another 2 weeks or so.
    Please let me know, I may be able to throw in a free subscription to our website for someone who can help me with this.

    Hello all... I'm maybe a little late to the party here, but I've had the same trouble for a while with both animated Transparent gifs and quicktime movies with an alpha channel matte.
    This morning I spent half an hour tinkering with the export options from quicktime player pro on my old laptop (I used QT 7.6.6 on OSX 10.8.5) and managed to make a "transparent" quicktime movie which plays in the new version of Keynote.
    If you have access to the old version of quicktime player pro, you can open your transparent, previously playable file (.gif or .movie) and use the ProRes compressor, using the "4444" option in the list of compressors. Make sure the colours are set to "millions+" to retain the matte and you shoud be OK.
    It works a charm... you have to re-import it, simply replacing the original file in the finder seemingly doesn't work, but you can use this method to generate a working version and take 30 seconds to re-import it into the keynote.
    Yes, the files are much larger than gifs. Yes it's a lot of messing around if you're not familiar with movies. But in principle it worked for me and sorted out a whole heap of my problems.
    Just for note, I've not tried exporting it to Powerpoint as I've no need to do so, or way to test it, but I guess that is a different matter.
    Hope that makes sense!

  • How to add text to transparent gif?

    Hi, I'm using Photoshop 6.01. with Windows 7 Professional.  I have a transparent gif file, to which I want to add text, including bullets.  The stuff I want to add is now on one of my webpages, and so is the gif, but I want to combine the image and the text.  Is there a way to do this?  If so, how?
    Thanks.

    If I understand what you are after and due to the point that Marion made. It would be wise to overlay the html text onto the graphic. To do so I recommend that you do a bit of research on CSS for absolute position and placement.
    But this assumes that the text in the html fits your needs. If you require special effects applied to the text or even fonts that are not supported via html, then you are more or left forced to use either photoshop or flash.

  • How can I take away the 1x1 transparent gif on my slideshows in muse?

    How can I take away the 1x1 transparent gif on my slideshows in muse?  It's showing up as a SEO error only on the pages that include slideshows. 

    To see all the photos on the phone, including photos that have already been imported into iPhoto, deselect the "Hide Photos Already Imported" checkbox. If the camera contains photos that have already been imported into iPhoto, those photos are hidden by default.

  • White lines around transparent gifs

    I've tried without success to eliminate the thin white line
    that appears around my transparent gifs in Fireworks. Does anyone
    know how to achieve this?

    The problem is how GIFs render transparency. What might help
    is to change the "matte" color found in the Optimize panel. It's
    probably set to white. Set it to match the background color of
    wherever the GIF is going to go.
    Because GIFs can't have semi-transparency, then anti-aliased
    (smoothed) edges basically have to have a background color baked
    into those pixels, that's what the matte color it. However, if you
    use PNG32 or PNG8 with Alpha Transparency, it will remain smooth.
    The only problem is the same problem with most things on the web:
    Internet Explorer. Alpha Transparency doesn't work in Internet
    Explorer 6 or below, without using some crazy hacks you'd have to
    google for.

  • Regarding transparent gif creation

    To anyone who knows more about this subject, I'm looking for some sample code.
    I've been having trouble redrawing an image as a gif while introducing transparent regions.
    The following method results in blackness where the transparency should be:
        [http://www.exampledepot.com/egs/java.awt.image/DrawOnImage.html]
    The next method accomplishes the transparency, but the non-transparent areas suffer in quality (I am drawing a BufferedImage of an outdoor scene after the transparency is drawn - it come out grainy). I think this is because in creating a new ColorModel to establish the transparent pixels, the original colors are approximated.
        [m-10305410]
    Can anyone show me how to establish a transparent gif with the original quality of the non-transparent areas preserved?
    Thanks.

    I think I can accomplish what you suggest by creating the bufferedImage as type TYPE_INT_ARGB.
    Although it doesn't show the creation of the BufferedImage in the first link of the two above, specifying TYPE_INT_ARGB doesn't seem to make a difference.
    The second link seems to provide a way around this by setting the transparency through use of a new ColorModel.
    This is guesswork. If it's a false assumption that initializing a BufferedImage with TYPE_INT_ARGB provides alpha support, let me know.
    By grainy, I mean pixelated.
    The code I used can be found at:
         [http://forums.sun.com/thread.jspa?threadID=5333259&tstart=45]
    I had posted the subject there earlier, but I think I didn't get to the point soon enough (no replies).
    You can cut and paste that code and try the two methods bWITH_TRANSPARENCY=true & bWITH_TRANSPARENCY=false and see the difference in the quality of the images produced. Just change "c:\\myjpg.jpg"; to point at a JPG file on your system.

  • Transparent GIFs for the web

    Hope someone can help with this.
    I'm basically trying to optimize a transparent image for the
    web. I have a straight PNG vesion here, which is what I'm trying to
    do, but it's around 96k - so a bit high.
    It looks like :
    example
    one
    I tried exporting it as an 8 bit PNG, which got the file size
    down, and looks OK in Safari, but looks hopeless in IE (6) :
    example
    2
    So I tried exporting as a transparent GIF, but it only looks
    like these :
    example
    3
    example
    4
    Any tips on how I can optimize it a bit better for the web,
    and retain it's original appearance?
    Cheers.

    As I have asked several times on the DW forum, how did you
    export the PNG
    image?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Iain71" <[email protected]> wrote in
    message
    news:fan87d$n8r$[email protected]..
    > Hope someone can help with this.
    >
    > I'm basically trying to optimize a transparent image for
    the web. I have a
    > straight PNG vesion here, which is what I'm trying to
    do, but it's around
    > 96k -
    > so a bit high.
    >
    > It looks like :
    >
    >
    http://www.handprintdvd.co.uk/webdesign/carcarenew/homepagetemp.shtml
    >
    > I tried exporting it as an 8 bit PNG, which got the file
    size down, and
    > looks
    > OK in Safari, but looks hopeless in IE (6) :
    >
    >
    http://www.handprintdvd.co.uk/webdesign/carcarenew/homepage.shtml
    >
    > So I tried exporting as a transparent GIF, but it only
    looks like these :
    >
    >
    http://www.handprintdvd.co.uk/webdesign/carcarenew/homepagetemp3.shtml
    >
    >
    http://www.handprintdvd.co.uk/webdesign/carcarenew/homepagetemp4.shtml
    >
    > Any tips on how I can optimize it a bit better for the
    web, and retain
    > it's
    > original appearance?
    >
    > Cheers.
    >

  • ANuB figures out how == overlap transparent gif in a JPanel!

    I have to say I have a hate/love realtionship with this forum. Sorry if I ofend but I know it's hard sometimes to get an answer for help as it is purely voluntary. But I've asked help for this a bazillion times and help has been min to null, but I want to say I'm hoping to post something to help someone how to figure out how to Overlap a transparent image or transparent gif over another in a custom JPanel and display it when an action is called. (action called code to follow soon in another forum)
    import java.awt.*;                                                                                          //     import extension packages
    import javax.swing.*;
    * <strong>TransparentImageExample</strong> -- drawing a transparent
    * image on top of a background image.
    public class PizzaImage extends JPanel
         private Icon     icnPizza,
                             icnLoaded,
                             icnSausage,
                             icnPepp,
                             icnOnion,
                             icnGrPep,
                             icnMush,
                             icnOlive,
                             icnGarlic,
                             icnPineApp,
                             icnSpinach;
         private Color bgColor;
         public void paintComponent( Graphics g )
              super.paintComponent( g );
              bgColor = new Color( 255, 235, 160 );
              this.setBackground( bgColor );
              icnPizza = new ImageIcon( "pzaThin.gif" );
              icnLoaded = new ImageIcon( "icnLoaded.gif" );
              icnSausage = new ImageIcon( "topSausage.gif" );
              icnPepp = new ImageIcon( "topPepp.gif" );
              icnOnion = new ImageIcon( "topOnion.gif" );
              icnGrPep = new ImageIcon( "topGrPep.gif" );
              icnMush = new ImageIcon( "topMush.gif" );
              icnOlive = new ImageIcon( "topOlives.gif" );
              icnGarlic = new ImageIcon( "topGarlic.gif" );
              //icnPineApp = new ImageIcon( "topPineApp.gif" );
              //icnSpinach = new ImageIcon( "icnLoaded.gif" );
              icnPizza.paintIcon( this, g, 0, 0 );
              icnSausage.paintIcon( this, g, 0, 0 );
              icnPepp.paintIcon( this, g, 0, 0 );
              icnOnion.paintIcon( this, g, 0, 0 );
              icnGrPep.paintIcon( this, g, 0, 0 );
              icnMush.paintIcon( this, g, 0, 0 );
              icnOlive.paintIcon( this, g, 0, 0 );
              icnGarlic.paintIcon( this, g, 0, 0 );
         public void draw()
              repaint();
    so just import the above code in a class fime which extends JPanel and display the PizzaImage objVariable  = new PizzaImage() in the component of your choice.
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    You guys are right about setting the background color outside of the paint method. I was more pre-occupied with trying to overlap the images. So now I have it set. NOW I need to draw each item when it is selected with a JCheckBox and I can't think of a good way to do that. Is there a way to undraw an image? I suppose I've gone too long w/o sleep. Here's what I have.
    // this code is in another class file
    private class chkBoxHandler implements ItemListener
              public void itemStateChanged( ItemEvent e )
                   for( int i = 0; i < chkBoxName.length; i++ )
                        if( e.getSource() == toppingChk[ i ] )     
                             if( e.getStateChange() == ItemEvent.SELECTED )
                                  pzaImage.setImage( i );
                                  pzaImage.draw();
                             if( e.getStateChange() != ItemEvent.SELECTED )
                                  JOptionPane.showMessageDialog( null, "Button Unselected",     //     displays a message
                                       "About MyPizzeria", JOptionPane.PLAIN_MESSAGE );          //     code to "undraw" the image will go here
    import java.awt.*;     
    import javax.swing.*;
    public class PizzaImage extends JPanel
         int     thisImgNum = -1;
         Icon pzaThin, icnLoaded;
         public String imgName[] = {     "topSausage.gif",
                                            "topPepp.gif",
                                            "topOnion.gif",
                                            "topGrPep.gif",
                                            "topMush.gif",
                                            "topOlives.gif",
                                            "topGarlic.gif",
                                            "topPine.gif",
                                            "topSpinach.gif"
         public Icon topping[] = {     new ImageIcon ( imgName[ 0 ] ),
                                            new ImageIcon ( imgName[ 1 ] ),
                                            new ImageIcon ( imgName[ 2 ] ),
                                            new ImageIcon ( imgName[ 3 ] ),
                                            new ImageIcon ( imgName[ 4 ] ),
                                            new ImageIcon ( imgName[ 5 ] ),
                                            new ImageIcon ( imgName[ 6 ] ),
                                            new ImageIcon ( imgName[ 7 ] ),
                                            new ImageIcon ( imgName[ 8 ] )
         private Color bgColor;
         public PizzaImage()
              setBackground(new Color(255, 235, 160));                         
              pzaThin = new ImageIcon( "pzaThin.gif" );                         
              icnLoaded = new ImageIcon( "icnLoaded.gif" );                    
         public void setImage( int img )                                             
              thisImgNum = img;                                                       
         public void paintComponent( Graphics g )                              
              super.paintComponent( g );
              pzaThin.paintIcon( this, g, 0, 0 );                                   
              if( thisImgNum == 0 )
                   topping[ 0 ].paintIcon( this, g, 0, 0 );
              if( thisImgNum == 1 )
                   topping[ 1 ].paintIcon( this, g, 0, 0 );
              if( thisImgNum == 2 )
                   topping[ 2 ].paintIcon( this, g, 0, 0 );
              if( thisImgNum == 3 )
                   topping[ 3 ].paintIcon( this, g, 0, 0 );
              if( thisImgNum == 4 )
                   topping[ 4 ].paintIcon( this, g, 0, 0 );
              if( thisImgNum == 5 )
                   topping[ 5 ].paintIcon( this, g, 0, 0 );
              if( thisImgNum == 6 )
                   topping[ 6 ].paintIcon( this, g, 0, 0 );
              if( thisImgNum == 7 )
                   topping[ 7 ].paintIcon( this, g, 0, 0 );
              if( thisImgNum == 8 )
                   topping[ 8 ].paintIcon( this, g, 0, 0 );
         public void draw()
              repaint();
    }

  • Creating a transparent GIF in Photoshop CS4

    I am new to Photoshop CS4 and I'm finding it a bit of a 'challenge'.
    I would like to create a transparent GIF of my signature, so that I can put it into various documents.
    My signature is on a white background and is written using a blue ball point pen and is scanned in as a colored GIF file.
    Despite having Googled how to do that I am completely stumped.  They talk about using the lasso tool to draw around my signature (which I do) and then they say press the delete key.  Well, on my iMac NOTHING happens!
    Can anyone offer me a simple tutorial (for the Mac) that can walk me through creating a transparent GIF file of my signature?
    Thanks,
    Peter

    Load luminance or the channel with the best contrast by command-clicking the appropriate channel in the Channels Panel
    It seems hard to make it more clear …
    Command-click (hold the command-key pressed while clicking) the composite Channel’s icon (or any of the other channels’ if you should deem them preferable) in the Channels Panel.
    This should load a Selection.
    I would like to create a transparent GIF of my signature, so that I can put it into various documents.
    Where do you want to do that anyway (Photoshop, some layout-software, a browser …)?
    Because depending on that using a file-format of fairly limited features like gif could seem inadvisable.
    the problem I have with Photoshop CS4 is that when I enter the help system it goes to the web and give me help for Photoshop CS5!!!!
    You should be able to download the Help as a pdf here:
    http://kb2.adobe.com/cps/408/kb408379.html
    If psd doen’t mean anything to you you should look it up.

  • Transparent GIFs no longer supported in iWeb '08 ?

    Was happily using transparent GIFs on previous versions of iWeb--they would appear completely blacked out in the media browser and in iPhoto, but when placed in an iWeb page, they maintained their transparency and looked fine.
    Now, with iWeb'08, they are just black. Does iWeb '08 no longer support transparency?

    Troubleshooting something else with AFP server I checked the com.apple.AppleFileServer.plist preference file and - indeed - there is no longer a specifically set option for SSHTunnel.
    Just in case Apple had made it default behaviour, I did attempt an SSH connection from a Tiger machine to a Leopard Server and a warning came up that SSH is not supported on the Leopard server.
    Apple seems to be pointing us all towards VPN's in general use - which is a good thing, as they are a snap to install and configure with Leopard Server. This is quite logical since SSH tunneling requires the user to have access to a shell, and the more security conscious administrator won't even allow a login-shell for normal users.
    If you do want to use SSH tunneling, it is still possible but you do have to the usual Terminal dance i.e. ssh -L 8548:remotehost:548 username@remotehost and then connect to the remote file server via afp://localhost:8548/.
    Generally, AFP over SSH is a kludge anyway, since it relies solely on TCP and is quite laggy and prone to failure. Also, it's quite a resource hog compared to other ways of securing network traffic.

  • What is it with transparent GIFs and Black????

    I'm trying to use transparent gifs in a little game! ;o) as an introduction to graphical java!
    Problem is when I load the images using the toolkit and then setting them as say the Icon for a panel, they are surrounded by Black?! In addition when I try to display them using an BufferedImage they are also surrounded by black?!!!
    Ive been tearing my hair out trying to understand why - and have sucessfully failed :D
    Can anyone help?!
    Pleeeeeeeeeeeeease!
    Thanks

    Can't seem to get that working?!
    If I want to put that image as the icon for the whole window how would I do that?
    ImageIcon tempIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage("images/icon.gif"));
    f.setIconImage(tempIcon.getImage());where f is a JPanel.
    The above code does not work?! I just get the black surround to the gif as before!>?

  • How to import transparent gifs in after effects cc

    I just upgraded form after effects cs5 to cc and one thing i cant understand is why i cant directly import transparent gifs as i could in cs5. I heard that you have to make a png sequence from fireworks but i dont want to go through all of that. I would appreciate if someonecan tell me how to easily import transparent animated gifs into after effects cc as you could in sc5

    You can't and that is that. This stuff used Quicktime components and simply too much has changed. You need to work with image sequences exported from Photoshop or whatever other program based on your GIF.
    Mylenium

Maybe you are looking for

  • Midlet running in the background

    Hello! I am wondering if it is possible to create a java program that runs in the background on a mobile phone. I.E can it run without beeing interuppted by a call or the locking of the key pad. Is it possible to let the program run without interferi

  • CREDIT NOTE FOR SALES TAX/VAT

    WE WANT TO PREPARE CREDIT NOTE FOR VAT WRONGLY CHARGES IN THE BILL. WHEN WE ARE PREPAIRING THE DOCUMENT (INVOICE CORRECTION) WITH REFERENCE TO THAT BILLING DOCUMENT, THE DIFFERENCE VALUE OF(TAX/VAT) IS NOT SHOWING IN NET VALUE AND IT IS NOT PROCESSIN

  • Substitution

    Hi All, how substitution can be adopted in workflow? wht is active substitution and wht is passive substitution? Thanks in advance

  • Elements 11 won't open after replacing motherboard

    I have a hard copy of Elements 11, which is activated on my laptop and my husband's laptop.  I recently had to replace the motherboard in mine.  Now when I try to open Elements, I get a message that the activation code has already been used twice and

  • Error With Ubuntu and windows 8 dual boot

    I have a levovo x240 and I had Ubuntu and windows 8 dual booted I removed the Ubuntu partition in windows partition modifier and when I restarted my computer it launch "grub rescue> " How do I boot into windows and stop this problem