2 writes to OldColor
System.Drawing.Common.Tests (2)
System\Drawing\Imaging\ColorMapTests.cs (1)
31OldColor = Color.AliceBlue
System\Drawing\Imaging\ImageAttributesTests.cs (1)
58new() { OldColor = Color.FromArgb(255, 255, 255, 0), NewColor = Color.FromArgb(255, 255, 0, 0) }
10 references to OldColor
System.Drawing.Common.Tests (10)
System\Drawing\Imaging\ColorMapTests.cs (2)
12Assert.Equal(default, cm.OldColor); 33Assert.Equal(Color.AliceBlue, cm.OldColor);
System\Drawing\Imaging\ImageAttributesTests.cs (8)
1176bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor); 1189bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor); 1202bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor); 1204Assert.Equal(_yellowToRedColorMap[0].OldColor, bitmap.GetPixel(0, 0)); 1254bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor); 1256Assert.Equal(_yellowToRedColorMap[0].OldColor, bitmap.GetPixel(0, 0)); 1268bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor); 1270Assert.Equal(_yellowToRedColorMap[0].OldColor, bitmap.GetPixel(0, 0));