Hi
I have the following code.
Bitmap memBmp;
defaultBmp.Save("default.jpg" , System.Drawing.Imaging.ImageFormat.Jpeg );
memBmp = new Bitmap(width, height); // witdth > defaultBmp.Width and height > defaultBmp.Height
Graphics g = Graphics.FromImage(memBmp);
SolidBrush brush = new SolidBrush(Color.Black);
rect = new Rectangle(0, 0, memBmp.Width, memBmp.Height);
g.FillRectangle(brush, rect);
brush.Dispose();
g.DrawImage(defaultBmp, new Point(xoffset, yoffset);
memBmp.Save("after.jpg", System.Drawing.Imaging.ImageFormat.Jpeg );
default.jpg
after.jpg
after.jpg has thin line at right and under side.
Why ?
