DrawImage() function over WinForms does not work correctly
问题 i've created a BitMap 1 pixel wide & 256 pixel height when i try to draw this bitmap as 2 pixels wide using: public void DrawImage(Image image,RectangleF rect) the bitmap is not drawn correctly because there are white slim stripes between each bitmap column. see the simple code below private void Form1_Paint(object sender, PaintEventArgs e) { Graphics gr = e.Graphics; Bitmap bitmap = new Bitmap(1, 256); for (int y = 0; y < 256; y++) { bitmap.SetPixel(0, y, Color.Red); } RectangleF rectf = new