public System.Drawing.Image GetReducedImage(int Width, int Height, byte[] streamByte)
{
try
{
System.Drawing.Image ReducedImage;
System.IO.MemoryStream ms = new System.IO.MemoryStream(streamByte);
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
System.Drawing.Image.GetThumbnailImageAbort callb = new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback);
ReducedImage = img.GetThumbnailImage(Width, Height, callb, IntPtr.Zero);
return ReducedImage;
}
catch
{
return null;
}
}
public bool ThumbnailCallback()
{
return false;
}