问题 The sample code for this issue is largely self-explanatory, so: [Fact] private void Color_in_should_equal_color_out() { var bitmap = new Bitmap(128,128,PixelFormat.Format32bppArgb); var color = Color.FromArgb(30,60,90,120); using (var g = Graphics.FromImage(bitmap)) { g.Clear(color); } var result = bitmap.GetPixel(0,0); Assert.Equal(color, result); } In this instance I would expect the color of the background to be identical to the color I cleared it to. Instead I get this: Assert.Equal()