Animated GIF problem

Hello

I use a GIF image for the design of the loading bar

The image is a black & white gif image that is his black image with white animation on it. but the problem is when I tried to load the image in the encodedImage holding corruption when shading is displayed. I tried the app with thread of animation. Also, I tried to draw the picture in a class that extends BitMapField. the problem still persists. Any idea on a question also

This is the code that I had to use for gifs:

Standard paint:

    protected void paint(Graphics graphics)
    {
        //Call super.paint. This will draw the first background
        //frame and handle any required focus drawing.
        super.paint(graphics);

        //Don't redraw the background if this is the first frame.
        if (_currentFrame != 0)
        {
            //Draw the animation frame.
            graphics.drawImage(_image.getFrameLeft(_currentFrame), _image.getFrameTop(_currentFrame),
                _image.getFrameWidth(_currentFrame), _image.getFrameHeight(_currentFrame), _image, _currentFrame, 0, 0);
        }
    }

The paint that I used:

    protected void paint(Graphics graphics)
    {
        for ( int i = 0; i <= _currentFrame; i ++ ) {
            graphics.drawImage(_image.getFrameLeft(i),
                               _image.getFrameTop(i),
                               _image.getFrameWidth(i),
                               _image.getFrameHeight(i),
                               _image,
                               i,
                               0, 0);
        }
    }

Tags: BlackBerry Developers

Similar Questions

  • Record animated gif problem

    Hello!

    Just for fun I was intending to change a gif of tackle football animation. I intend to remove the player attacking every frame of the animated gif image. So it would take time to complete.

    I correctly opened the gif in CS6 via import of video frames to layers.

    It consists of 72 layers and I tried to fix 10 of them just to see how it would roughly look like.

    My problem comes when I try to save and restore the GIF (via save for WEB).

    The first 10 images of my gif displays only an image of freezing, and then it shows the rest of the 11-72 without any problem.

    What am I doing wrong, because my layers edited does not appear in the final GIF?

    http://i.imgur.com/IeNX8.jpg

    Right away! Easy solution.

    First of all, the reason why your first 10 frames do not change is because each of these images shows the same layer (Layer 1).

    • In your layers panel, you have 1 layer visible value and all of the other layers are invisible. It's good for image 1, but for part 2, you'll want to do 2 layer that is visible.
    • Click on image 2 in your editing panel and then check the eyeball icon to make the visible Layer 2 ! Do the same for the frame 3/Layer 3, Frame 4/layer 4, etc until you reach the end of the animation!

    For the second problem, to make frames from layers option is grayed out because you already have pictures in your timeline.

    • Go to your timeline panel and select all the images and delete them.
    • Then select all your layers in the layer panel, right click and choose the Images made of layers... you should be able to click it once your Timeline is disabled. It will automatically create the images that range from Layer 1 to your last layer (so you wouldn't have to do it manually as above ^).

    Anyway should take care of your problem! Please let me know if it works for you!

    See you soon,.

    Michael

  • Export or publish on animated GIF problems.

    Hello!

    I just did a SWF banner, but also my client wants it not as an animated GIF.

    When I publish the animation as an animated GIF, not only is the slower animation, but the lost colors their transparency, and makes weight jump 50 times.

    Here are the two:

    http://www.Chris.lafacade.com/maquettes/Cholette/big_box_flash.html

    http://www.Chris.lafacade.com/maquettes/Cholette/big_box_gif.html

    What I am doing wrong?

    I really need the GIF animation to weigh 39 k max.
    Thank you!
    Chris.

    Some things do not lend themselves to become animated gifs, especially if they are in competition with a version of Flash.  When it comes to the gif files you process compromise due to limitations of the color palette, representing deviations in color that you will find.  And with aniimated of the gif files, you deal with potentially hundreds of images gif individual trying to recreate what Flash anime very effectively.  Down the weight would require reducing the number of colors, to optimize each part of the animation and remove the components of the animations as well.

    Without knowing how much he weighs now, it is difficult to say if you could get any where near your goal of 39 K without ending up with a whole other appearing animation.  This is probably a case of one of those things where wants that the customer is not necessarily possible without compromise.

  • Animated GIF - problem with Frame Delay

    Mac OS X 10.5.8

    PSE 6.0

    I just created an animated gif by following the steps in the help of PSE.  It says that I should be able to adjust the speed at which the images turn by changing the Frame Delay measure but I am unable to change it.  In fact, I am unable to change anything in the Animation of the dialog section.

    When I check the Animation, the options appear to become active (they are gray is no longer) but I can uncheck the loop option or change the Frame Delay option.  All other sections of the dialog box work fine.

    Your help would be most appreciated!

    Beth

    Unfortunately, it's broken in PES 6 and 8 of PSE. You can tab into the frame delay box if you start on it somewhere on this side of the screen and it appears to allow you to change the rate, but your choice does not really affect the actual rate. The only solution is to duplicate the layers image that you want to remain on the screen longer (so it will change just as fast, but not obviously).

  • Problems with Adobe Flash Professional CC (CS6 too) to save the animated .gif file or .swf file perfect

    Hello

    I have a problem with Adobe Flash Professional CC and CS6 to save the animated .gif file. This is a very simple work with logo. But I can't save a perfect swf or gif file, and that's bad news for me. Logo .swf file record with bugs. Bugs just see then file to insert in the page of freeshop. This is just example of test page, it allow you to see the bugs of logo - http://tagraseshop.graphicsrim.eu . Here is the actual page, but it's not my, freeshop with old logo is and I corect it - http://www.tagras.lt

    .Gif absoluted anime file not saved in Flash CC. Just the gif image. And why? My Windows 8.1 operating system.  In fact, I try to register on Adobe Flash Professional CS6. It is not save too...

    GIF "animation"- https://mega.co.nz/#! D8pEVaRR! LK4 ahNfhg-nI4T-0vROV9xCa1XfXz4br1X9lpQfUR0nQNT
    SWF with bugs- https://mega.co.nz/#! jo5lSRyS! 1x6GjWqYsf7n4KknUs6eF8EqZXEv9e8RsSpGd8h5 jGQ

    FLA -flash document- https://mega.co.nz/#! C94nCDSS! 7yKF9FIBvYtVC9r8kYiJ0l0xzUm_R2HwgoXks6iM zUA

    Perfect animation speed is here- http://e-shoptagras.graphicsrim.EU

    Who can help me?

    Any ideas?

    Thanks for your help in advance!

    But when I download the SWF logo in the page http://www.tagras.lt, it is always visible with bug, flash on it. I don't create it like this, why it is done that way? (Why SWF logo flashing/load?) ( http://www.tagras.lt look at the main title on the left).

    Thank you very much!

  • Problems/help with animated GIF export

    I am an experienced user of Photoshop.  I've recently upgraded to CS5 (Windows) and have sought to produce animated GIFS.

    After reading some tutorials on the subject, I was able to:

    Create a PSD with some images of jpg in the form of layers;

    Move the layers in the animation window;

    The cycle time and optimize the animation window. and,

    The levels of peripheral dialogue Web backup to create the GIF file.

    Everything seems to be normal throughout this process.  However, the exported GIF file appears as a grey frame dark when I open it in Internet Explorer, or download it on my site of images.

    Does anyone else know this type of problem?

    Thank you

    On 5K bytes, I'd say you're full, nothing there.

    I can't help thinking that there could be problems with the settings that you selected in the dialog box peripheral & Web...  Could you capture your screen in this dialog box and show what you got there?

    You see a blank image like the one you posted above in the optimized tab?

    -Christmas

  • Serious problems to export a movie to an animated GIF

    I'm trying to export a movie to an animated GIF and, well, the resulting file is garbage. I don't want to say it looks like less than optimal... I mean it looks like absolutely nothing to the video source at all. I heard from others that there are significant problems with the GIF-to-export Flash routines, but does anyone have advice to try to improve the situation?

    Thank you.

    That certainly seems to produce superior - or at least, achievable - results using this approach. But it doesn't seem as if the colors in the palette are allocated correctly. (To be sure, my film in its current state is not very nice gifs.)

    In any case, thanks for the tip... and it looks like that publish on the GIF option is really, really broken!

  • Animated GIF doesn't move, image.animation_mode already set to Normal

    With image.animation_mode already set to Normal.
    more animated gif (if not all) are to be does not move

    There is no problem in loading the image, but it seems to be limited to the first image.

    It happens even with the download of the gif, only the first image is uploaded so that the image is not as lively.

    Will there be another kernel setting in firefox that affect it?
    I tried to off the extensions and addons, but the problem persists.
    It won't happen with a new profile.

    Thanks, I found that it is from the proxy software. I froze without meaning to the animatinos.

  • Firefox slows down when opening a site with animated gifs

    After FF4 update, I find that whenever I try to open a page that has several on this animated gifs, firefox slows down a lot. The CPU usage goes up to 50-75% and all animated gifs are moving really slow.

    It is not only large animated gifs, but it occurs also on the forums that have animated smileys. I never had this problem in FF 3.6 neither another browser (IE, Chrome, Safari). If I start FF4.0 without modules or plugins it does the same thing. Even with a new facility. Does anyone have a solution to his problem? Since I can't use some of my favorite now with FF sites, without my pc slow everything down.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    Safe mode disables extensions in Firefox 4, and disables hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.
  • Animated GIF causes popup to hang?

    Hello:

    We started to use animated GIFs strongly in popups Teststand for about a year and a half. As we used this feature, we have had reports more and more Teststand suspended after acknowledging the popups.

    The problem is very intermittent. But it is reproducible. See the attached files. Sequence is call a popup not modal teststand again and again that displays an animated image. The popup is set to timeout after a second (just for the convenience to reproduce the problem). The sequence always crashes in minutes. Behavior is the same in the editor of sequence or the user interface of the CVI. If the sequence changes so that no image is displayed by the popup, the sequence does not crash.

    We use Teststand 4.0.1f1. I would like to know how to solve this, because it is quite a major problem with us.

    Thank you

    Dave

    Dave-

    Wanted to just call with you on this issue. LabWindows/CVI 9.0.1 was released and its runtime engine resolves the deadlock problem that have seen you. So to avoid blocking on a system, you just install the new version of the RTE located in the: http://ftp.ni.com/support/softlib/labwindows/cvi/Run-Time%20Engines/9.0.1/NILWCVIRTE90.exe. You may need to restart your system after the installation.

  • animated GIF not showing do not adequately

    I have an animated gif image, and I used http://supportforums.blackberry.com/t5/Java-Development/Display-an-animated-GIF/ta-p/445014 this link to animate the noise towards the top of the screen and that did not work properly

    You can see the animation below

    public class UpdatePopScreen extends PopupScreen{
    
            public UpdatePopScreen(){
                 super(new VerticalFieldManager(), Screen.DEFAULT_CLOSE); 
    
                 GIFEncodedImage ourAnimation = (GIFEncodedImage) GIFEncodedImage.getEncodedImageResource("sunblackk.gif");
                AnimatedGIFField _ourAnimation = new AnimatedGIFField(ourAnimation, Field.FIELD_HCENTER);
    
                this.add(_ourAnimation);
               add(new LabelField("Loading..."));
    
        }         
    
        }
    

    and I have attached AnimatedGIFField.java

    I think something is wrong in your establishment or the way you use this code, because it works very well for me.  Sorry you'll have to do investigative work to identify the problem.

    I suspect there are two possibilities:

    (a) you have not configured your environment properly

    (b) you use something else keeps track of events

    I think that (b) is the most likely, but to test these two at the same time, you must proceed as follows:

    Create a new project and a new example application, then, in this application, test the screen.  Nothing else in this project - it should start just a screen, the screen should have a button, when you click the button the treatment should push the pop-up screen.

    I have included my code (which combines Animation and popup screen into one file - not recommended but useful source under test).  Use this code and the image as an attachment in your new project.

    Test it on your Simulator.

    Assuming that you can get this working, then we can investigate on what is actually wrong in your application.

    package mypackage;
    
    import net.rim.device.api.system.GIFEncodedImage;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Screen;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.BitmapField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.PopupScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    public class UpdatePopScreen extends PopupScreen {
        public UpdatePopScreen(){
    
             super(new VerticalFieldManager(), Screen.DEFAULT_CLOSE); 
    
             GIFEncodedImage ourAnimation = (GIFEncodedImage) GIFEncodedImage.getEncodedImageResource("animated.agif");
            AnimatedGIFField _ourAnimation = new AnimatedGIFField(ourAnimation, Field.FIELD_HCENTER);
    
            this.add(_ourAnimation);
            add(new LabelField("Loading..."));
    
        }
    }
    
    class AnimatedGIFField extends BitmapField
    {
        private GIFEncodedImage _image;     //The image to draw.
        private int _currentFrame;          //The current frame in the animation sequence.
        private AnimatorThread _animatorThread;
    
        public AnimatedGIFField(GIFEncodedImage image)
        {
            this(image, 0);
        }
    
        public AnimatedGIFField(GIFEncodedImage image, long style)
        {
            //Call super to setup the field with the specified style.
            //The image is passed in as well for the field to configure its required size.
            super(image.getBitmap(), style);
    
            //Store the image and it's dimensions.
            _image = image;
    
            //Start the animation thread.
            _animatorThread = new AnimatorThread(this);
            _animatorThread.start();
        }
    
        protected void paint(Graphics graphics)
        {
            //Call super.paint.  This will draw the first background frame and handle any required focus drawing.
            super.paint(graphics);
    
            //Don't redraw the background if this is the first frame.
            if (_currentFrame != 0)
            {
                //Draw the animation frame.
                graphics.drawImage(_image.getFrameLeft(_currentFrame), _image.getFrameTop(_currentFrame),  _image.getFrameWidth(_currentFrame)
                                    , _image.getFrameHeight(_currentFrame), _image, _currentFrame, 0, 0);
            }
        }
    
        //Stop the animation thread when the screen the field is on is
        //popped off of the display stack.
        protected void onUndisplay()
        {
            _animatorThread.stop();
            super.onUndisplay();
        }
    
        //A thread to handle the animation.
        private class AnimatorThread extends Thread
        {
            private AnimatedGIFField _theField;
            private boolean _keepGoing = true;
            private int _totalFrames;               //The total number of frames in the image.
            private int _loopCount;                 //The number of times the animation has looped (completed).
            private int _totalLoops;                //The number of times the animation should loop (set in the image).
    
            public AnimatorThread(AnimatedGIFField theField)
            {
                _theField = theField;
                _totalFrames = _image.getFrameCount();
                _totalLoops = _image.getIterations();
    
            }
    
            public synchronized void stop()
            {
                _keepGoing = false;
            }
    
            public void run()
            {
                while(_keepGoing)
                {
                    //Invalidate the field so that it is redrawn.
                    UiApplication.getUiApplication().invokeAndWait(new Runnable()
                    {
                        public void run()
                        {
                            _theField.invalidate();
                        }
                    });                
    
                   try
                    {
                        //Sleep for the current frame delay before the next frame is drawn.
                        sleep(_image.getFrameDelay(_currentFrame) * 10);
                    }
                    catch (InterruptedException iex)
                    {
    
                    } //Couldn't sleep.
    
                    //Increment the frame.
                    ++_currentFrame;      
    
                    if (_currentFrame == _totalFrames)
                    {
                        //Reset back to frame 0 if we have reached the end.
                        _currentFrame = 0;
    
                        ++_loopCount;
    
                        //Check if the animation should continue.
                        if (_loopCount == _totalLoops)
                        {
                            _keepGoing = false;
                        }
                    }
                }
            }
        }
    }
    
  • How can animated GIFs, I do to make them work with Windows 7?

    I can't do the animated GIFs to work after that I have download on my computer.

    I tried to get a few new avatars and for some reason that I can't animated GIFs to work after that I have download it to my computer, they remain as an ordinary image. For example, if I tried to get ith animated GIFs

    .
    http://www.glitter-graphics.com/down...100&height=100

    So I followed the directions [with the right button on the image below and select "save under" only for personal purposes: Please do not send to other sites.] (see our TOS)]   and always get a still image. What I am doing wrong?

    What is going on with everything I tried to copy or download animated GIFs, never had this problem with Windows XP.
    Now I have windows 7.

    Help? anyone?

    Thank you

    Have a look here.

    Panel\All Control Panel Items\Default programs, "Associate a type of file or Protocol with a program", the command on my machine the default program for .gif is Internet Explorer.  Which appear to indicate a page full of IE with an animated .gif, maybe you need a third party program to do what you want?

    Go to IE tools/internet options/advanced/multimedia. Make sure that the option to play the animations is turned on. If no joy, make sure that your connections are associated with Internet Explorer - if you click on a .gif file in windows Explorer, IE should open to view it.  Some security software can disable the animation.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

    See what is here if you are looking for Avatars.
    http://www.Google.com.au/search?q=avatars+download&SourceID=IE7&RLS=com.Microsoft:-to the: IE-SearchBox & ie = & oe = & redir_esc = & ei = d8t6TOL4JIPJce2Z4PcF

  • [Flash Pro] Motion tween is added an animated GIF picture

    * FIRST - I couldn't find one

    Hi, I'm working on a school project and we have recently I do an animation before Monday.

    So my problem is that I have a GIF of a man walking (which already has images by default to make the man walk) and I can not add a motion tween.

    So we learned essentially to take a car for example. We import a photo of a car (non - gif; no pre animated movement) and select it. make a symbol (video clip), then click on frame 30 and "Create motion tween" as we moved the image to the end; What makes a path automatically.

    But here, I can't do that because when I import the GIF man walking, he already has lots of raster data built in front to make the moving man and I cannot understand how to really add a motion tween to make man to move (of course with its PRE-BUILT animation [gif makes the arms and legs move]) and make him cross a road I built. So basically I want the man to move from one end to the other using a motion tween (or if there are other ways to do?) and alongside with its GIF data that moves its arms and legs.

    Small SS of my calendar:

    http://prntscr.com/b2qqwa

    as you can see here; the second element/first layer called "anyone walk - 1" is a GIF image and when I load it, it loads its pre movements animated and I can't create a Tween to make humans image cross one end to the other with her has pre-built ones again.

    Long, but I tried to make the Guide and all other acts and I tried Googling my head, spent 4 hours and found NOTHING. ABSOLUTELY NOTHING. And our teacher didn't us really learn this type of concept and neither do I class before it is due, so you are my only hope.

    Thank you.

    See if you can follow these steps:

    Right-click on the name of the layer to the market-1 person.

    Select the copy layer.

    Go to the library and click right in and empty the part of the library window and select new symbol. Will it be a movieclip.

    Now, you will be inside this new movieclip. Right click in the layer 1 name and select the layer of dough.

    You now have a moveiclip of your person walking. Go back to the top level of the scene and make a new layer.

    Drag the new movieclip on the stage.

    You should now be able to add a motion tween to this new layer. So who has worked, you can delete your original person market-1 layer.

  • CC 2015 in question animated gif mp4

    I have a mp4 I opened in CC 2015 I am able to convert an animated gif. The purpose of this is to import gif into Edge. Problem is that I have the gif imported as farm by image animation. How do I convert mp4 to an animated gif image and export that pf photoshop from the animation image?

    R

    If you have flattened the film clips a layer for each image there.  You can use the Photoshop script export layers to files, you will have an image for each image file.

  • White animated GIF is in pink

    I have a Flash banner ad that I need to provide to a provider as an animated GIF. It's a simple thing to export a GIF file to animate HOWEVER, if I use the 256 color palette all whites are indexed to the rose. I won't have the same problem with the 216 color palette, BUT the quality of photo imaging is much worse. I expect color approval to export the index, but it doesn't seem to be a way to do this. I tried to open the GIF in Photoshop, but it opens the pink GIF more it Soundtracks to the top of the calendar. I haven't the time nor the budget to redo the banner in Photoshop. Does anyone have any ideas? Thank you!

    maven_cap.jpg

    When you export a GIF sequence, Flanimate tries to determine what are the more 'important' 256 colors in the image to generate the palette. Apparently, he thinks that the shade of Pink is more important than the white.

    The best way around this is to use the Export movie to generate a PNG sequence, then treat this sequence in a GIF file via some more capable GIF generation tool, like Fireworks.

Maybe you are looking for