I am trying to return an embedded image that is being generated on the fly. The image generation is working perfectly, and when the page displays, the image displays properly, but there is a margin around the image. Is there a way around this? I have the tag
<
body style="margin: 0 0 0 0">
in the the .aspx file, but this doesn't seem to do anything. The image is the only thing displayed on the page.
Bitmap bmp = KeyframeImage.GetSDKeyframe(sKeyframe, sGuid, Session["Guid"].ToString(), Guid.NewGuid().ToString());
System.Drawing.Image img = bmp.GetThumbnailImage(iWidth, iHeight, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);
Response.ContentType =
"image/jpeg";
img.Save(Response.OutputStream,
ImageFormat.Jpeg);