System.Drawing.Bitmap outBmp;
sigImg = System.Drawing.Image.FromFile(FilePath);
outBmp = new System.Drawing.Bitmap(sigImg);
// Sending Response GIF type to the browser.
Response.ContentType = "image/gif";
outBmp.MakeTransparent(System.Drawing.Color.White);//(outBmp.GetPixel(1,1));
outBmp.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
// Disposing the objects.outBmp.Dispose();
Why would the resulting image have black wherever white appears in the image?
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.