Method CreateBitmapFromHBitmap
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.dll
CreateBitmapFromHBitmap(nint, nint, BitmapAlphaChannelOption)
Creates an IBitmap from a GDI bitmap handle.
IBitmap CreateBitmapFromHBitmap(nint hBitmap, nint hPalette, BitmapAlphaChannelOption option)
Parameters
hBitmapnintA bitmap handle to create the bitmap from.
hPalettenintA palette handle used to create the bitmap. For a non-palettized bitmap, use Zero.
optionBitmapAlphaChannelOptionThe alpha channel options to create the bitmap.