33 references to ToArgb
Microsoft.Private.Windows.Core (1)
Windows\Win32\Graphics\Gdi\ARGB.cs (1)
40public static implicit operator ARGB(in Color color) => new((uint)color.ToArgb());
System.ComponentModel.TypeConverter (2)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
77int targetARGB = color.ToArgb(); 81if (c.ToArgb() == targetARGB)
System.Drawing.Common (12)
System\Drawing\Bitmap.cs (1)
332PInvokeGdiPlus.GdipBitmapSetPixel(this.Pointer(), x, y, (uint)color.ToArgb()).ThrowIfFailed();
System\Drawing\Drawing2D\LinearGradientBrush.cs (4)
17(uint)color1.ToArgb(), (uint)color2.ToArgb(), 119PInvokeGdiPlus.GdipSetLineColors(NativeLineGradient, (uint)value[0].ToArgb(), (uint)value[1].ToArgb()).ThrowIfFailed();
System\Drawing\Graphics.cs (2)
1192public void Clear(Color color) => CheckStatus(PInvokeGdiPlus.GdipGraphicsClear(NativeGraphics, (uint)color.ToArgb())); 2773uint nearest = (uint)color.ToArgb();
System\Drawing\Imaging\ImageAttributes.cs (3)
257(uint)colorLow.ToArgb(), 258(uint)colorHigh.ToArgb()).ThrowIfFailed(); 448(uint)color.ToArgb(),
System\Drawing\Pen.cs (2)
48PInvokeGdiPlus.GdipCreatePen1((uint)color.ToArgb(), width, (int)GraphicsUnit.World, &pen).ThrowIfFailed(); 524PInvokeGdiPlus.GdipSetPenColor(NativePen, (uint)_color.ToArgb()).ThrowIfFailed();
System.Drawing.Primitives (2)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
77int targetARGB = color.ToArgb(); 81if (c.ToArgb() == targetARGB)
System.Private.Windows.Core (1)
Windows\Win32\Graphics\Gdi\ARGB.cs (1)
40public static implicit operator ARGB(in Color color) => new((uint)color.ToArgb());
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
383if (ForeColor.ToArgb() == SystemColors.WindowText.ToArgb()) 389int colorRGB = ForeColor.ToArgb();
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
382return SystemColors.Control.ToArgb() == Color.Black.ToArgb();
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2191|| t_focusPenColor.ToArgb() != baseColor.ToArgb())
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
105int rgb = color.ToArgb(); 108if (colors[i].ToArgb() == rgb)
System.Windows.Forms.Primitives (6)
System\Windows\Forms\DeviceContextExtensions.cs (2)
120return newColor.ToArgb() == color.ToArgb() ? color : newColor;
System\Windows\Forms\SystemDrawingExtensions.cs (4)
35return newColor.ToArgb() == color.ToArgb() ? color : newColor; 105? new Pen(Color.FromArgb(color.ToArgb())) { DashStyle = dashStyle } 121? new SolidBrush(Color.FromArgb(color.ToArgb()))