Create a .gif file?

How do I create very simpel 1cm x 1cm colored .gif file? Can someone plz tell?

The simple way is to use method
public Image createImage(int width, int height)of any java.awt.Component you use. Then, you can use method
public Graphics getGraphics()of the created image to get Graphics object to draw into the image.
(Note, that you cannot draw to an image, which is not created by createImage method!). For example:
import java.awt.*;
public class MyApplet extends java.applet.Applet {
  Image image;
  public void init() {
    image = createImage(100,100);
    Graphics g = image.getGraphics();
    g.drawLine(0,0,100,100);
  public void paint(Graphics g) {
    g.drawImage(image, 0, 0, this);
}It is also possible to use java.awt.image.MemoryImageSource class to create an image from binary data (see API doc).
Frantisek G.

Similar Messages

  • Can I create a gif file with hyperlink hotspots?

    Hi everyone,
    I'm trying to create a gif file in Photoshop or Fireworks than I can upload to a website as a background image to my profile page, but I would like to be able to include a few different hyperlinks embedded within that gif file, so for instance if a user clicks on the text for a website this acts as a hyperlink and opens the site in a new browser window.
    Is this possible or not, my knowledge of Photoshop/Fireworks is quite limited but as far as I can tell, this is only possible if I'm exporting the image from Fireworks as an HTML document, and that's not what I need .. it has to be in a gif or jpeg format.
    Can someone put me out of my misery please and let me know if its possible to embed one or more hyperlinks within certain areas of a gif file?
    Many thanks in advance
    Wayne

    That's pretty much what I thought Chris, thanks very much for taking the time to reply to my post - its very much appreciated.
    Kind Regards,
    Wayne

  • How can I create a GIF file ?

    Does anybody know, how can I create a Gif file with LV.
    I had used the print option (Print to HTML file) from LV but I can't use it
    when I
    create an application with appbuilder.
    Does anybody know another way to carry it out?
    Thanks in advance

    You understood me correctly but the properties of the documentation tool
    doesnt exist
    after building the application (Runtime Version). Only the Menu "File /
    Print Window" option is present. Therefor I looked for another way to do it.
    "Dennis Knutson" schrieb im Newsbeitrag
    news:506500000005000000A24C0000-1004225886000@exch​ange.ni.com...
    > I was talking about the properties of the documentation tool which
    > creates an html file and allows for the selection of GIF as an image
    > format. The GIF files are the front panel, diagram, and icon. You
    > didn't specify what you are trying to print but if you need something
    > else, let us know.

  • Creating a .gif file in QT Pro?!?!

    can someone help me out or even let me know if this is possible

    What you want to do (create a .gif using QT Pro) can't be done. QuickTime can open .gif files (even preserve transparency) but the saved file will be .mov.
    You can create an Image Sequence movie that will resemble the features on an animated .gif file, however.
    Create your still images (sized identically) and save them to a new folder using sequencial naming (1.jpg, 2.jpg, 3.jpg, etc.). They can be any format that QT understands.
    Select Open Image Sequence, navigate to this new folder and highlight (single-click) the first file in the list. Click OK and select a "frame rate" for the new file.
    QuickTime will assemble your files into one .mov file.
    Graphic Converter can now do some work with .mov files and may even be able to export your image sequence. .gif is 8 bit (256 colors) so if you wish to use the .gif format you will lose a lot of data if your original QT import were in any format other than .gif.
    Try this freeware to start and end in .gif format:
    http://www.apple.com/downloads/macosx/imaging_3d/gifbuilder.html

  • Unable to create animated gifs, file size too large???

    Hello,
    I'm trying to create an animated gif and every time I save for web, select gif, and click on animate I receive an error stating that my file size is too big and I should remove layers. My animated gif is composed of 8 layers of jpegs, each originally about 1 MB. I've tried to reduce the image size by adjusting the ppi and also reducing the amount of layers to just 2 and I still get the same error.
    Is there a way I can fix this so I can produce animated gifs, and is there a way you can know if it will work on not, before you try and save it?
    Also, when I save the image I only have 1 layer visible, does that matter at all?
    Thanks in advance for your help.

    Something is very wrong here. The point behind using GIFs is that they are small and OK to put on a Web site.
    First thing: forget all about PPI - this has absolutely no relevance to Web/screen images; it is only used for printing. You need to think about the pixel size.
    So, how big in pixels are your starting images?
    How big do you want the resulting GIF to be? Again, you have to decide in pixels, as the viewing size will depend upon screen resolution of the person looking at it. You can use a notional PPI of 70-100 to guess how big it will be in inches, but that's all it is - a guess.
    Is this getting you going in the right direction?
    I cannot resist commenting that I hate almost all animated GIFs as they reduce Web site usability so much.

  • Gif file won't animate in Muse's preview mode or in Muse's view in browser mode

    Created a gif file with Photoshop that's 7.5MB in size.  Placed the gif  file on a Muse page.  But, the gif won't animate in Muse's preview mode or when Muse sends the page to be viewed in browser mode.  I'm using a Mac running OS X 10.9.2 and I'm a creative cloud member using Muse.  Any solutions?

    Step one to enable the community to help debug what you're encountering would be to provide the URL for the page where the GIF is being used. My first guess would be there are effects applied to the image (i.e. inner glow, bevel, etc.) that require Muse to re-encode the image and Muse does not support encoding animated .gif. It only supports passing animated .gif files through unchanged. (And to get an image to pass through unchanged it needs to have no effects that require rasterization applied in Muse.)
    Given you've stated the GIF file is 7.5Mb I have to question your choice of .gif. At 7.5Mb this single file will take ~8 seconds to download on the average US broadband connection and will be much slower for many broadband users and most cellular users. GIF is a reasonable choice for very small short animations used sparingly, but is seldom (if ever) a good choice for larger or longer animations. Better choices for those are to use a video or a tool like Edge Animate to create a HTML5/CSS3 animation. The end result will be vastly more user friendly in terms of page load performance.
    A huge percentage of first time visitors to a webpage will cancel the page load rather than waiting 8+ seconds for the page load to complete.

  • What is the accepted format for creating animated emoticons for the iPhone and iPad? Are they .gif files?

    I'm new to creating apps for iOS and am interested in creating an app that uses animated emoticons in messaging. I wasn't sure what format was accepted, however. I presumed that .gif files would work but want to know for sure before we begin working on them. Thanks!

    So...how does one make animated emoticons for iOS? That's my question, I suppose. Thanks!

  • Creating a Gif is different frame rate

    If I have an uncompressed .AVI file that I created in After Effects CS5.5 which is 23.976 fps, and load it in Adobe Media Encoder CS5.5, and tell it to create a .GIF of it, at an output fps of 23.976, when I load the created .GIF into Adobe After Effects it tells me the frame rate is 25 fps and there is a black frame padded on the end.  I want the frame rate of the GIF to be what I ask it to be, ie. 23.976, with no additional black frames.
    Here's what happened with screenshots:
    1. I load the uncompressed AVI file that was created in Adobe After Effects CS5.5 into Adobe Media Encoder CS5.5.  Note below that Adobe Media Encoder is saying that the source clip is 23.976 fps, and that the export settings are to create an animated GIF at 23.976 fps.
    2. After Adobe Media Encoder CS5.5 has said "done" (Encoding Completed Succesfully) for this export to a .GIF, if I take that .GIF file that Adobe Media Encoder has just created into Adobe After Effects CS5.5, this is what it says:
    As can be seen above, Adobe After Effects CS5.5 is saying the GIF file that Adobe Media Encoder CS5.5 has just encoded is actually 25 fps, not 23.976 fps like I told it to be exported as.  Also, the GIF Adobe Media Encoder has created is 10 frames long, whereas my original uncompressed AVI is 9 frames long.
    Edit: I've just been reading up on the GIF format and it seems it doesn't store a frame rate but instead stores a frame delay, which is in hundredths of a second.  If this is just an integer, is this the reason for the displayed frame rate discrepancy, ie. 1 frame at 23.976 fps  would be 4.1708 hundredths of a second I think, and 1 frame at 25 fps would be 4 hundredths of a second I think - both rounded to the nearest integer would be 4 hundredths of a second so would the frame delay be set to "4" for both 23.976 fps and 25 fps? (there is also the fact that some short time will be taken for the drawing of the frame)
    Though even with the above, it shouldn't be increasing the amount of output frames.  It converts it correctly (no additional frames) if I use VirtualDub to convert the AVI to GIF instead of Adobe Media Encoder CS5.5.

    Thanks.  Could you get them to also check other parts of the code too.  eg. when I had a work area set in Adobe After Effects CS5.5 and then loaded that project into Adobe Media Encoder (dynamic link etc.) and rendered just the work area I think it was about a frame out then too - I don't think it was a GIF in that case but another type (maybe AVI/H264).

  • How to create a GIF from inside an SWF?

    I have a Flash application that allows users to arrange
    images, in the form of imported SWF MovieClips, into a scene of
    their choosing. I would like to save these custom scenes into
    static GIF files on the webserver. I'm not sure if this is possible
    solely with ActionScript or if I'd have to do some work with PHP/GD
    or Java, but I have seen it done before (Yahoo! Answer avatars) so
    I know it's possible.
    I'm very new to actionScript. So far I've found the functions
    for dealing with bitmap data but none for file creation. Can anyone
    point me in the right direction? As you may guess, it's hard to
    Google for variations of "flash create gif" because this is also a
    function of the development tools.
    Thank you for your advice and suggestions!

    I'm sorry octav20xx, was there a particular result of that
    search that you thought I should look at? Of the first page of
    results, most are links to utilities for converting SWFs to
    animated GIFs, which as I mentioned is not what I want to do. The
    rest of the results seem irrelevant to my question.
    Perhaps I wasn't clear. I need the SWF to automatically
    generate static GIF files based on dynamic user input. I have
    already done a lot of searching on Google for a solution but found
    none; this is why I am asking here instead.
    Can anyone help?

  • Animated Gif files in Captivate

    I have created an animated GIF file in Photoshop that i want to use in my captivate file.
    The file wont preview in any of the preview modes other than the HTML5 output preview. All other previews just show the first frame of the GIF file.
    If i chose to SWAP the animation with another GIF from the library the preview shows the animation playing.. see attached
    Is there something im doing wrong here.
    I guess i could upload my final file to the LMS with HTML5 output as this preview shows the animation but i also read there are limitations with this output as some transitions / effects dont work.
    Any help would be greatly appreciated.
    Thanks
    Darren

    Hi Darren,
    Yes, you can verify whether your GIF would fucntion correctly on HTML5 platform by Window--HTML5 Tracker Pod.
    I am not an expert on Photoshop, but still would like to make a recommendation.
    Set the 'delay' value for each of your Frame to 0.01 or some value if it shows as 0, this can be done using the animation frame Window. Save it as GIF again for Web Devices and import in Captivate, see, if you are abale to preview this time.
    Thanks,
    Anjaneai

  • Animated .gif file correction and image ready help.

    Hi,
    I have an animated gif created in an early verison of Image Ready & Photoshop. I need to make some changes. I have two problems.
    A: Can't figure how to do it in the current version of Photoshop.
    B: Open in the old image ready version, can't find the Layers pallet. I turn it on and off and it doesn't appear.
    Trying to recreate a rotating .gif file any pointers or how to's?
    Thanks,
    John

    You didn't say which version of ImageReady, but cs5 should open
    most animated gifs from ImageReady and show the frames in the
    Window>Animation panel. Some may not work right depending on
    how old the version of ImageReady was that created them.
    (you may have to resave the animation in ImageReady as a psd file)
    In ImageReady try Window>Workspace>Reset Palette Locations and the layers
    palette should be visible.
    In ImageReady, in the actions palette, are several actions to rotate (spin) images.
    MTSTUNER

  • Can Premiere Elements be used on an animated gif file?

    I am considering purchasing Premiere Elements but I need to know if one can use it to add effects to an animated gif file.
    For example, in Photoshop Elements one can add certain effects to a gif image, such as giving it certain textures or filters.
    Can one do the same kind of thing in Premiere Elements and if so can it be done to an animated gif file?
    Maybe a better way to ask this question is:  can you import an animated gif file into Premiere Elements and then manipulate it?  Run filters, etc.
    Thanks for your help.

    If you load your GIF into Premiere Elements 10, edit it, then share to an AVI file, you can then import the AVI file into GIF Movie Gear by Gamani, which will then create an animated GIF. I learned about this utility from a Microsoft tutorial on creating icons for Windows XP.
    http://www.gamani.com/product_icon.htm
    If you use Firefox and get redirected, try using Internet Explorer instead.
    After the trial period is over, it's $29.95US for 4 licences.
    When you share to an AVI file, you will want to select the Microsoft AVI item from the list, then click the advanced button to open up the dialog where you will need to select a codec and enter the frame size and frame rate. The codec will have to be one that GIF Movie Gear likes, so there may be some trial and error needed to get a good codec. I shared to an AVI after picking Xvid for the codec, which GIF Movie Gear imported.

  • App for animated .gif files?

    I've searched till I'm blue in the face and before it turns red, is there and APP that can upload moving .gif files/pics from your Mac to a folder in the iPhone 3G(S)? When you sync a moving pic or file form iTunes to your iPhone in one of its photo/picture folders, of course the .gif doesn't move but is still. Is there an APP that will view these moving .gif's which allows them to move as they were intended or created?

    She used the Link Tool, specfied 'Image URL' as the Source File Format and the url of the animated GIF in the Source Filename. Hope that helps.
    Makes sense but the form is not for the web.
    I have looked at doing it with timers and switching canvases, but that is just too much
    for sloppy animation. It's just not tight enough.
    Thanks,
    Sean
    null

  • Animated GIF files, anyone had issues with the selected animation delay not saving as specified?

    I am working on PSE 9 for Mac and have created my psd file with the layers.
    Selected 'Save for Web' and chose GIF as the file format.
    Ticked 'Animation', then from the bottom right hand corner under 'Animation' I have ticked 'loop' and in the 'delay' drop down selected 2.0 (so 2 seconds).
    When I check the file in 'preview in' web it shows the file flashing faster than 2 seconds a frame. I also checked it by uploading it onto my website and it is flashing faster than 2 seconds.
    I have saved the file several times to check. It appears that even though you are given a choice that is automatically saves the delay at the auto-populated delay speed of 0.2 seconds.
    Thoughts anyone?

    As far as i know, the frame delay has been broken
    for several versions on the mac pse.
    Since version 4 maybe?
    You can comment on this post and hopefully adobe will fix it in pse 10.
    http://feedback.photoshop.com/photoshop_family/topics/photoshop_elements_9_mac_frame_delay _in_save_for_web
    MTSTUNER

  • Animated .gif files in Captivate - why doesn't it work?

    OS:                         XP
    Captivate Version:      3
    I was e-mailed an animated .gif that I want to use in a project I'm working on.
    I saved the .gif to a drive.  I then clicked Insert - Animation and selected it.  I received a message stating This is not an animated GIF file or file in use.  If I click Insert - Image, it brings in the image but the file is not animated.
    Just for testing purposes, I moved the .gif file by itself on to the web server.  When I access it through Internet Explorer on the web server, it works.
    How do I get the file to animate in Captivate?
    Your help is appreciated.  Thanks.

    I wasn't able to open your GIF animation in Photoshop and nothing appeared in Captivate when I inserted it -- the same experience that you had. I tried an experiment with a very simple GIF animation that I created from scratch in Photoshop CS4. When I tried to insert this simple animation into Captivate 4, a message appeared that Captivate was converting. It never finished converting and eventually hung Captivate and had to force it to quit.
    Since Lilybiri is able to insert Photoshop animated GIFs into Captivate without any problems, it may be that there are some version incompatibilities. It would be interesting to know which versions of Photoshop and Captivate Lilybiri is using and which versions you are using. It would also be interesting to know if Lilybiri is using transparency in the GIF, and which settings are being used when saving the GIF.

Maybe you are looking for

  • Library locked on external drive

    Hi, I was using the Aperture on a PowerBook 17" laptop without problems. I was running out of space and copied the aperture library file on an external USB drive. It worked fine for a couple of weeks but than, after one import from my D200 stoped in

  • How to print within the margins of the page when printing from iPad to HP Envy D410a?

    When I try to print something from the iPad, either the 1 or the 2, the result is that the image sent from the iPad is printed Borderless, which of course results in parts of the print being cutoff, is there someway to resize the print through the pr

  • ESS Error Structure field Region not found

    Hello everyone, In Netweaver I installed the ESS/MSS and i'm getting the following error, when I go to "Travel and Expenses" -> "Create Travel Plan" com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: DataNodeInfo(FcTrpPlan.PlanBook

  • Webdynpro Application not displaying mimes once deployed to Portal

    Dear Thomas, As per the reply to one of the threads with similar issue, we applied the SAP OSS Note No: 0001342713. It worked pretty fine once the Note was applied. Unfortunately, after some few operatonal hours, we could not see the images or mimes

  • Anyone ever had this problem?

    An Audio Instrument track with a send to a stereo bus is still heard when muted. The send is definitely post fader but the sound is escaping to the bus. Even disabling the send has no effect. Changing the send from post to pre and back again works .