Results 1 to 4 of 4

Thread: Creating animated GIFs...?

  1. #1
    junfanbl is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Feb 2016
    Posts
    17
    Reputation
    16

    Creating animated GIFs...?

    Hey Everyone, I am looking to create some functionality that will create GIF animations of whatever is happening on my desktop. The animation doesn't need to be long, maybe 6 seconds at the most. I have done some research on the subject and have various code snippets here and there but nothing comprehensive. My understanding is that to make it work you need to create the screenshots first and then assemble into a GIF.  

    Can somebody tell me how to get started?

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,085
    Reputation
    2803
    How to format posts with code blocks etc - present the problem/post properly

    Visual Studio Community 2017

  3. #3
    junfanbl is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Feb 2016
    Posts
    17
    Reputation
    16
    Hello, thanks for the reply and the link. I was able to assemble some code to get the screenshots I need. However I have seen mixed results over the web on whether or not .NET can actually create animated GIFS. This forum post for example says that the GDI+ Gif encoder doesn't support the Image.SaveAdd() method, so while you can manipulate the individual frames of a GIF, you can't actually save one: animated gif - GIF manipulation in vb.net - Stack Overflow.

    However this post claims that you can: c# - how to create an animated gif in .net - Stack Overflow.

    There are other sources on the web that claim different things, but SO is very reputable (usually). Why is there a difference in claims as to what can and can't be done with .NET?

  4. #4
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,085
    Reputation
    2803
    I have never attempted creating animated gif, so I don't know. Quick research revealed same as yours, there are many bits and pieces and variations people use to do this, some use a library and some write specific bytes directly.
    How to format posts with code blocks etc - present the problem/post properly

    Visual Studio Community 2017

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •