4 instantiations of HPALETTE
System.Private.Windows.Core (4)
Windows.Win32.HPALETTE.g.cs (3)
41
public static explicit operator HPALETTE(void* value) => new
HPALETTE
(value);
57
public static explicit operator HPALETTE(IntPtr value) => new
HPALETTE
((void*)value.ToPointer());
59
public static explicit operator HPALETTE(UIntPtr value) => new
HPALETTE
((void*)value.ToPointer());
Windows\Win32\System\Ole\OLE_HANDLE.cs (1)
12
public static explicit operator HPALETTE(OLE_HANDLE handle) =>
new
((int)handle.Value);
45 references to HPALETTE
System.Drawing.Common (8)
System\Drawing\BufferedGraphicsContext.cs (6)
203
private bool FillBitmapInfo(HDC hdc,
HPALETTE
hpalette, BITMAPINFO* bitmapInfo)
260
private bool FillColorTable(HDC hdc,
HPALETTE
hpalette, BITMAPINFO* bitmapInfo)
276
HPALETTE
halftonePalette = (
HPALETTE
)Graphics.GetHalftonePalette();
322
_dib = CreateCompatibleDIB(src,
HPALETTE
.Null, optWidth, optHeight);
352
private HBITMAP CreateCompatibleDIB(HDC hdc,
HPALETTE
hpalette, int ulWidth, int ulHeight)
System\Drawing\Graphics.cs (1)
37
private static
HPALETTE
s_halftonePalette;
System\Drawing\Image.cs (1)
782
PInvokeGdiPlus.GdipCreateBitmapFromHBITMAP((HBITMAP)hbitmap, (
HPALETTE
)hpalette, &bitmap).ThrowIfFailed();
System.Private.Windows.Core (26)
Windows.Win32.HPALETTE.g.cs (14)
25
: IEquatable<
HPALETTE
>
35
internal static
HPALETTE
Null => default;
39
public static implicit operator void*(
HPALETTE
value) => value.Value;
41
public static explicit operator
HPALETTE
(void* value) => new HPALETTE(value);
43
public static bool operator ==(
HPALETTE
left,
HPALETTE
right) => left.Value == right.Value;
45
public static bool operator !=(
HPALETTE
left,
HPALETTE
right) => !(left == right);
47
public bool Equals(
HPALETTE
other) => this.Value == other.Value;
49
public override bool Equals(object obj) => obj is
HPALETTE
other && this.Equals(other);
55
public static implicit operator IntPtr(
HPALETTE
value) => new IntPtr(value.Value);
57
public static explicit operator
HPALETTE
(IntPtr value) => new HPALETTE((void*)value.ToPointer());
59
public static explicit operator
HPALETTE
(UIntPtr value) => new HPALETTE((void*)value.ToPointer());
61
public static implicit operator HGDIOBJ(
HPALETTE
value) => new HGDIOBJ(value.Value);
Windows.Win32.PICTDESC.g.cs (1)
63
internal winmdroot.Graphics.Gdi.
HPALETTE
hpal;
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (5)
503
/// <inheritdoc cref="GetPaletteEntries(winmdroot.Graphics.Gdi.
HPALETTE
, uint, uint, winmdroot.Graphics.Gdi.PALETTEENTRY*)"/>
505
internal static unsafe uint GetPaletteEntries(winmdroot.Graphics.Gdi.
HPALETTE
hpal, uint iStart, Span<winmdroot.Graphics.Gdi.PALETTEENTRY> pPalEntries)
528
internal static extern unsafe uint GetPaletteEntries(winmdroot.Graphics.Gdi.
HPALETTE
hpal, uint iStart, uint cEntries, [Optional] winmdroot.Graphics.Gdi.PALETTEENTRY* pPalEntries);
794
internal static extern winmdroot.Graphics.Gdi.
HPALETTE
SelectPalette(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.
HPALETTE
hPal, winmdroot.Foundation.BOOL bForceBkgd);
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (3)
22
public
HPALETTE
HPALETTE { get; }
24
public SelectPaletteScope(HDC hdc,
HPALETTE
hpalette, bool forceBackground, bool realizePalette)
34
public static implicit operator
HPALETTE
(in SelectPaletteScope paletteScope) => paletteScope.HPALETTE;
Windows\Win32\PInvokeCore.GetPaletteEntries.cs (2)
8
/// <inheritdoc cref="GetPaletteEntries(
HPALETTE
, uint, uint, PALETTEENTRY*)"/>
9
public static unsafe uint GetPaletteEntries(
HPALETTE
hpal, Span<PALETTEENTRY> entries)
Windows\Win32\System\Ole\OLE_HANDLE.cs (1)
12
public static explicit operator
HPALETTE
(OLE_HANDLE handle) => new((int)handle.Value);
System.Private.Windows.GdiPlus (6)
Windows.Win32.PInvokeGdiPlus.gdiplus.dll.g.cs (4)
895
/// <inheritdoc cref="GdipCreateBitmapFromHBITMAP(winmdroot.Graphics.Gdi.HBITMAP, winmdroot.Graphics.Gdi.
HPALETTE
, winmdroot.Graphics.GdiPlus.GpBitmap**)"/>
896
internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateBitmapFromHBITMAP(winmdroot.Graphics.Gdi.HBITMAP hbm, winmdroot.Graphics.Gdi.
HPALETTE
hpal, ref winmdroot.Graphics.GdiPlus.GpBitmap* bitmap)
906
internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateBitmapFromHBITMAP(winmdroot.Graphics.Gdi.HBITMAP hbm, winmdroot.Graphics.Gdi.
HPALETTE
hpal, winmdroot.Graphics.GdiPlus.GpBitmap** bitmap);
1132
internal static extern winmdroot.Graphics.Gdi.
HPALETTE
GdipCreateHalftonePalette();
Windows\Win32\Graphics\Gdi\HdcExtensions.cs (1)
10
private static
HPALETTE
s_halftonePalette;
Windows\Win32\Graphics\GdiPlus\GpBitmapExtensions.cs (1)
54
public static PICTDESC CreatePICTDESC(this IPointer<GpBitmap> bitmap,
HPALETTE
paletteHandle = default)
System.Windows.Forms (2)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
184
HPALETTE
palette = PInvoke.CreateHalftonePalette(dc);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
28
private
HPALETTE
_oldPalette;
System.Windows.Forms.Primitives (3)
System\Drawing\ImageExtensions.cs (1)
47
return Image.FromHbitmap((HBITMAP)handle, (
HPALETTE
)paletteHandle);
Windows.Win32.PInvoke.GDI32.dll.g.cs (1)
61
internal static extern winmdroot.Graphics.Gdi.
HPALETTE
CreateHalftonePalette(winmdroot.Graphics.Gdi.HDC hdc);
Windows.Win32.QACONTAINER.g.cs (1)
63
internal winmdroot.Graphics.Gdi.
HPALETTE
hpal;