Skip to main content

Posts

Showing posts with the label Christmas

Creating .GIFs in C#

It's almost the season for Christmas , and what a fun way to tie in the season with some programming than learning how to make .GIF files with C#. We are going to be making a Christmas tree as shown below! Merry Christmas Christmas doesn't last for  just one day , so let's prepare to celebrate it when it comes! What's in a .GIF? The .GIF file format is made up of many different parts , but this picture does the best job at explaining that at a glance. The .GIF file format Each section is a collection of bytes written to a file in a particular format. By following the specification , we can write these bytes to a file and create for us our own .GIF file by hand. No, you don't have to create .GIF files by hand. You can use different libraries  to do the same thing we are about to do. In fact, if you are intending to use any .GIF - related code in production , you should be using a library. Libraries are better tested and have better perf...