Software Development Network>> Visual C#>> create gif
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
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
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 =
Bitmap myBitmap;
{
myBitmap =
System.Drawing.Image myThumbnail = ExtractThumbnail(myBitmap, thumbWidth, thumbHeight,
myThumbnail.Save(fullSavePath + sThumbFile.Replace("'",""));
myThumbnail.Dispose();
myBitmap.Dispose();
}
create gif
freeranger
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
lsproc
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
object
i have 5 image .. and i want to create programaticly an gif..
LoL is that hard
derekjohn37
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 objectsmyThumbnail.Dispose();
myBitmap.Dispose();
}
catch(Exception ex){
///TODO Make sure to let this go throw(ex);}
Mike Stall - MSFT
Eric Jonker
some code