I am working from this example to resize an image :
I have converted most of the code to C# :
Response.Clear();
Response.ContentType = "image/jpeg";
System.Drawing.Image image = retrieveImage(strEncodedImage);
System.Drawing.Image.GetThumbnailImageAbort dummyCallback;
dummyCallback = new System.Drawing.Image.GetThumbnailImageAbort(new EventHandler(ThumbnailCallback));
System.Drawing.Image thumb;
thumb = image.GetThumbnailImage(600, 350, dummyCallback, IntPtr.Zero);
thumb.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
But I'm not sure what to do with this :
Function ThumbnailCallback() as Boolean
Return False
End Function
Can anybody help?
I have converted most of the code to C# :
Response.Clear();
Response.ContentType = "image/jpeg";
System.Drawing.Image image = retrieveImage(strEncodedImage);
System.Drawing.Image.GetThumbnailImageAbort dummyCallback;
dummyCallback = new System.Drawing.Image.GetThumbnailImageAbort(new EventHandler(ThumbnailCallback));
System.Drawing.Image thumb;
thumb = image.GetThumbnailImage(600, 350, dummyCallback, IntPtr.Zero);
thumb.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
But I'm not sure what to do with this :
Function ThumbnailCallback() as Boolean
Return False
End Function
Can anybody help?