if using the code below to fill an area on a bitmap...
|
also the pixels around the 'rect' area are manipulated, but they should remain, as they are.
The same effect I'm having, when inserting images using g.DrawImage(...), g.DrawImageUnscaled(...), g.DrawImageUnscaledAndClipped(...)
Does anyone know, how to prevent this?
Michael
Ibrahim ErsoyPosted Jan 18, 2011, 12:38 PM
g.SmoothingMode = SmoothingMode.None
Thats true.But in where are you using the codes above?
Did you refer to PaintEventArgs while creating your graphics object.
And one more thing "Dispose" it after you saved the image file.Maybe this can help