Hi!
I really need fast translation from tif to gif. I have to translate thousands
of tiff:s to 3 gif:s 25,33,100%.
Anybody that knows how to speed this up?
If we buy a "heavy" vga-card will that speed things up or is the conversion done
in the .net api?
This code works but is to slow...
<extract>
Bitmap bmp = null;
try
{
bmp = new Bitmap(fi.FullName);
int sizex = bmp.Width;
int sizey = bmp.Height;
System.Drawing.Image tt = bmp.GetThumbnailImage(sizex, sizey, null,System.IntPtr.Zero);
tt.Save(fio.FullName + ".gif", ImageFormat.Gif);
tt.Dispose();
// 33 %
sizex = bmp.Width/3; sizey = bmp.Height/3;
tt = bmp.GetThumbnailImage(sizex, sizey, null, System.IntPtr.Zero);
tt.Save(fio.FullName + "_33.gif", ImageFormat.Gif);
tt.Dispose();
if (bmp != null) bmp.Dispose();
bmp = null;
}
catch (Exception e)
{
....
}
if (bmp != null) bmp.Dispose();
Regards
Janne