create gif

does anybody has a simple idea how to create .gif image with c#



Answer this question

create gif

  • PK_SSIS

    below is a sample on how to copy a bitmap, this is taken from a project i have so you will have to change the fileName Paths., etc. but this should work.

    Also look into System.Drawing.Imaging theres loads of help on how to copy bitmaps in MSDN

    System.Drawing.Image.GetThumbnailImageAbort myCallBack = new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback);

    Bitmap myBitmap;

    try

    {

    myBitmap = new Bitmap(fullSavePath + sFilename);

    string sThumbFile = fileAcronym + "_" + Path.GetFileNameWithoutExtension(myFile.FileName) + thumbExtension;

    System.Drawing.Image myThumbnail = ExtractThumbnail(myBitmap, thumbWidth, thumbHeight, false, true);

    myThumbnail.Save(fullSavePath + sThumbFile.Replace("'",""));

    //Destroy objects

    myThumbnail.Dispose();

    myBitmap.Dispose();

    }

    catch(Exception ex)

    {

    ///TODO Make sure to let this go

    throw(ex);

    }



  • kbabaria

    LoL man.. do you understand what i m saying

    i have 5 image .. and i want to create programaticly an gif..

    LoL is that hard


  • ScottyD

    i want to create a gif from other images..


    some code


  • nmueggler

    how do you make the loop


  • Unus

    do you understand what i am saying

    that code above copies an image from another, put it in a loop and direct it to the path of your source images, its not that hard.

    mcm



  • FoxProg9

    do you want to create one (like draw a box from scratch) or make a gif from some other image.

    System.Drawing

    and System.Drawing.Imaging

    and System.Drawing.2D are all classes that deal with writing / copying images.

    hth,
    mcm



  • create gif