17 references to COLORREF
System.Private.Windows.Core (12)
Windows\Win32\Foundation\COLORREF.cs (4)
12/// <see cref="COLORREF"/> is a DWORD- passing constants in native code would just pass the value as is. 22public static implicit operator COLORREF(Color color) => new((uint)ColorTranslator.ToWin32(color)); 23public static implicit operator Color(COLORREF color) => ColorTranslator.FromWin32((int)color.Value); 24public static implicit operator COLORREF(int color) => new((uint)color);
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (1)
27/// Creates a solid brush based on the <paramref name="color"/> using <see cref="PInvokeCore.CreateSolidBrush(COLORREF)"/>.
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (1)
27/// <see cref="PInvokeCore.CreatePen(PEN_STYLE, int, COLORREF)" />.
Windows\Win32\Graphics\Gdi\SetBackgroundColorScope.cs (3)
18private readonly COLORREF _previousColor; 23/// <see cref="PInvokeCore.SetBkColor(HDC, COLORREF)"/>. 25public SetBackgroundColorScope(HDC hdc, COLORREF color)
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (3)
22private readonly COLORREF _previousColor; 27/// <see cref="PInvokeCore.SetTextColor(HDC, COLORREF)"/>. 29public SetTextColorScope(HDC hdc, COLORREF color)
System.Windows.Forms.Primitives (5)
System\Windows\Forms\DeviceContextExtensions.cs (1)
101/// Calls <see cref="PInvoke.GetNearestColor(HDC, COLORREF)"/> to get the nearest color for the given
Windows\Win32\PInvoke.ImageList.cs (3)
37/// <inheritdoc cref="ImageList_DrawEx(HIMAGELIST, int, HDC, int, int, int, int, COLORREF, COLORREF, IMAGE_LIST_DRAW_STYLE)"/> 112/// <inheritdoc cref="ImageList_SetBkColor(HIMAGELIST, COLORREF)"/>
Windows\Win32\PInvoke.SetLayeredWindowAttributes.cs (1)
8/// <inheritdoc cref="SetLayeredWindowAttributes(HWND, COLORREF, byte, LAYERED_WINDOW_ATTRIBUTES_FLAGS)"/>