6 references to FromWin32
System.Drawing.Common.Tests (1)
System\Drawing\ColorTranslatorTests.cs (1)
81
Assert.Equal(color, ColorTranslator.
FromWin32
(oleColor));
System.Private.Windows.Core (1)
Windows\Win32\Foundation\COLORREF.cs (1)
23
public static implicit operator Color(COLORREF color) => ColorTranslator.
FromWin32
((int)color.Value);
System.Windows.Forms (3)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1360
color = ColorTranslator.
FromWin32
(
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
861
return ColorTranslator.
FromWin32
(intColor);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
101
return !_usingDefaultIndirectColor ? _color : ColorTranslator.
FromWin32
(ColorTranslator.ToWin32(_color));
System.Windows.Forms.Primitives (1)
System\Windows\Forms\DeviceContextExtensions.cs (1)
119
Color newColor = ColorTranslator.
FromWin32
((int)PInvoke.GetNearestColor(hdc, (COLORREF)(uint)ColorTranslator.ToWin32(color)).Value);