53 references to ToArgb
System.Drawing (36)
commonui\System\Drawing\Advanced\ColorPalette.cs (1)
102Marshal.WriteInt32((IntPtr)((long)memory + 4*(i+2)), 0, entries[i].ToArgb());
commonui\System\Drawing\Advanced\ColorTranslator.cs (1)
211return KnownColorTable.ArgbToKnownColor(color.ToArgb());
commonui\System\Drawing\Advanced\HatchBrush.cs (2)
55int status = SafeNativeMethods.Gdip.GdipCreateHatchBrush(unchecked((int) hatchstyle), foreColor.ToArgb(), backColor.ToArgb(), out brush);
commonui\System\Drawing\Advanced\ImageAttributes.cs (5)
460int lowInt = colorLow.ToArgb(); 461int highInt = colorHigh.ToArgb(); 625Marshal.StructureToPtr(map[index].OldColor.ToArgb(), (IntPtr)((long)memory+index*size*2), false); 626Marshal.StructureToPtr(map[index].NewColor.ToArgb(), (IntPtr)((long)memory+index*size*2+size), false); 716color.ToArgb(),
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (15)
47color1.ToArgb(), 48color2.ToArgb(), 74color1.ToArgb(), 75color2.ToArgb(), 112color1.ToArgb(), 113color2.ToArgb(), 152color1.ToArgb(), 153color2.ToArgb(), 198color1.ToArgb(), 199color2.ToArgb(), 246color1.ToArgb(), 247color2.ToArgb(), 292color1.ToArgb(), 293color2.ToArgb()); 663argbs[i] = blend.Colors[i].ToArgb();
commonui\System\Drawing\Advanced\PathGradientBrush.cs (3)
221int status = SafeNativeMethods.Gdip.GdipSetPathGradientCenterColor(new HandleRef(this, this.NativeBrush), value.ToArgb()); 250argbs[i] = colors[i].ToArgb(); 597argbs[i] = blend.Colors[i].ToArgb();
commonui\System\Drawing\Bitmap.cs (1)
715int status = SafeNativeMethods.Gdip.GdipBitmapSetPixel(new HandleRef(this, nativeImage), x, y, color.ToArgb());
commonui\System\Drawing\ColorConverter.cs (2)
210int targetARGB = ((Color)obj).ToArgb(); 213if (c.ToArgb() == targetARGB) {
commonui\System\Drawing\Graphics.cs (2)
1122int nearest = color.ToArgb(); 1977int status = SafeNativeMethods.Gdip.GdipGraphicsClear(new HandleRef(this, this.NativeGraphics), color.ToArgb());
commonui\System\Drawing\Pen.cs (2)
78int status = SafeNativeMethods.Gdip.GdipCreatePen1(color.ToArgb(), 757color.ToArgb());
commonui\System\Drawing\SolidBrush.cs (2)
45int status = SafeNativeMethods.Gdip.GdipCreateSolidFill(this.color.ToArgb(), out brush); 152int status = SafeNativeMethods.Gdip.GdipSetSolidFillColor(new HandleRef(this, this.NativeBrush), value.ToArgb());
System.Web (1)
UI\ObjectStateFormatter.cs (1)
1140writer.Write(c.ToArgb());
System.Web.DataVisualization (2)
Common\Utilities\XmlSerializer.cs (2)
2712 writer.Write(((Color)obj).ToArgb()); 2752 writer.Write(color.ToArgb());
System.Windows.Forms (12)
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (2)
119IsFilledWithHighlightColor = (color.ToArgb() == SystemColors.Highlight.ToArgb());
winforms\Managed\System\WinForms\ControlPaint.cs (2)
2191focusPenColor.ToArgb() != baseColor.ToArgb() ||
winforms\Managed\System\WinForms\Help.cs (1)
175pop.clrBackground = Color.FromKnownColor(KnownColor.Window).ToArgb() & 0x00ffffff;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
2208oldTextColor = SafeNativeMethods.SetTextColor(new HandleRef(g, hdc), SafeNativeMethods.RGBToCOLORREF(textColor.ToArgb())); 2209oldBkColor = SafeNativeMethods.SetBkColor(new HandleRef(g, hdc), SafeNativeMethods.RGBToCOLORREF(bkColor.ToArgb()));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
448if (this.ForeColor.ToArgb() == SystemColors.WindowText.ToArgb()) { 454int colorRGB = this.ForeColor.ToArgb();
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (2)
345 return SystemColors.Control.ToArgb() == Color.Black.ToArgb();
System.Windows.Forms.DataVisualization (2)
Common\Utilities\XmlSerializer.cs (2)
2712 writer.Write(((Color)obj).ToArgb()); 2752 writer.Write(color.ToArgb());