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