53 references to FromArgb
System.ComponentModel.TypeConverter (2)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
52
return PossibleKnownColor(Color.
FromArgb
(unchecked((int)(0xFF000000 | (uint)IntFromString(text, culture)))));
64
1 => PossibleKnownColor(Color.
FromArgb
(IntFromString(textSpan[tokens[0]], culture))),
System.Drawing.Common.Tests (34)
Helpers.cs (2)
36
Color expectedColor = Color.
FromArgb
(colors[y][x].ToArgb());
116
Color emptyColor = Color.
FromArgb
(0);
mono\System.Drawing\BitmapTests.cs (1)
688
pixel_colour = Color.
FromArgb
(pixel_value);
System\Drawing\BitmapTests.cs (3)
1465
Color red = Color.
FromArgb
(Color.Red.ToArgb());
1466
Color blue = Color.
FromArgb
(Color.Blue.ToArgb());
1482
pixelColor = Color.
FromArgb
(pixelValue);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (19)
30
Assert.Equal(new Color[] { Color.
FromArgb
(color1.ToArgb()), Color.
FromArgb
(color2.ToArgb()) }, brush.LinearColors);
57
Assert.Equal(new Color[] { Color.
FromArgb
(color1.ToArgb()), Color.
FromArgb
(color2.ToArgb()) }, brush.LinearColors);
91
Assert.Equal(new Color[] { Color.
FromArgb
(color1.ToArgb()), Color.
FromArgb
(color2.ToArgb()) }, brush.LinearColors);
108
Assert.Equal(new Color[] { Color.
FromArgb
(color1.ToArgb()), Color.
FromArgb
(color2.ToArgb()) }, brush.LinearColors);
134
Assert.Equal(new Color[] { Color.
FromArgb
(color1.ToArgb()), Color.
FromArgb
(color2.ToArgb()) }, brush.LinearColors);
151
Assert.Equal(new Color[] { Color.
FromArgb
(color1.ToArgb()), Color.
FromArgb
(color2.ToArgb()) }, brush.LinearColors);
177
Assert.Equal(new Color[] { Color.
FromArgb
(color1.ToArgb()), Color.
FromArgb
(color2.ToArgb()) }, brush.LinearColors);
194
Assert.Equal(new Color[] { Color.
FromArgb
(color1.ToArgb()), Color.
FromArgb
(color2.ToArgb()) }, brush.LinearColors);
383
Assert.Equal(blend.Colors.Select(c => Color.
FromArgb
(c.ToArgb())), brush.InterpolationColors.Colors);
404
Assert.Equal(blend.Colors.Select(c => Color.
FromArgb
(c.ToArgb())), brush.InterpolationColors.Colors);
536
Assert.Equal(colors.Take(2).Select(c => Color.
FromArgb
(c.ToArgb())), brush.LinearColors);
System\Drawing\GraphicsTests.cs (6)
819
Color red = Color.
FromArgb
(Color.Red.ToArgb());
858
Color red = Color.
FromArgb
(Color.Red.ToArgb());
1065
Color red = Color.
FromArgb
(Color.Red.ToArgb());
1540
Color plum = Color.
FromArgb
(Color.Plum.ToArgb());
1916
yield return new object[] { PixelFormat.Format32bppArgb, Color.Red, Color.
FromArgb
(Color.Red.ToArgb()) };
2736
Color color = Color.
FromArgb
(Color.Plum.ToArgb());
System\Drawing\PenTests.cs (2)
70
Assert.Equal(Color.
FromArgb
(Color.Red.ToArgb()), pen.Color);
239
Assert.Equal(Color.
FromArgb
(Color.Red.ToArgb()), pen.Color);
System\Drawing\SolidBrushTests.cs (1)
10
yield return new object[] { default(Color), Color.
FromArgb
(0) };
System.Drawing.Primitives (3)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
52
return PossibleKnownColor(Color.
FromArgb
(unchecked((int)(0xFF000000 | (uint)IntFromString(text, culture)))));
64
1 => PossibleKnownColor(Color.
FromArgb
(IntFromString(textSpan[tokens[0]], culture))),
System\Drawing\KnownColorTable.cs (1)
490
return Color.
FromArgb
((int)argb);
System.Private.Windows.Core (2)
System\Value.PackedColor.cs (1)
54
: _state == 0 ? Color.Empty : Color.
FromArgb
(_argb);
Windows\Win32\Graphics\Gdi\ARGB.cs (1)
44
public static implicit operator Color(ARGB argb) => Color.
FromArgb
((int)argb.Value);
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5995
Color foreColor = Color.
FromArgb
((int)PInvoke.GetTextColor(nmcd->hdc).Value);
5996
Color backColor = Color.
FromArgb
((int)PInvoke.GetBkColor(nmcd->hdc).Value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
380
return Color.
FromArgb
(colorRGB);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
657
return Color.FromArgb(255, Color.
FromArgb
(int.Parse(hexColor, NumberStyles.HexNumber, CultureInfo.InvariantCulture)));
System.Windows.Forms.Primitives (2)
System\Windows\Forms\SystemDrawingExtensions.cs (2)
105
? new Pen(Color.
FromArgb
(color.ToArgb())) { DashStyle = dashStyle }
121
? new SolidBrush(Color.
FromArgb
(color.ToArgb()))
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\RefCacheTests.cs (1)
84
=> new ColorCacheEntry(Color.
FromArgb
(key), cached);
System.Windows.Forms.Tests (5)
System\Windows\Forms\AxHostTests.cs (4)
1608
original.SetPixel(1, 2, Color.
FromArgb
(unchecked((int)0xFF010203)));
1626
Assert.Equal(Color.
FromArgb
(unchecked((int)0xFF010203)), original.GetPixel(1, 2));
1668
original.SetPixel(1, 2, Color.
FromArgb
(unchecked((int)0xFF010203)));
1691
Assert.Equal(Color.
FromArgb
(unchecked((int)0xFF010203)), original.GetPixel(1, 2));
System\Windows\Forms\TabPageTests.cs (1)
626
Color expected = Color.
FromArgb
(int.Parse(expectedString));