Table of Contents

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

hBitmap nint

A bitmap handle to create the bitmap from.

hPalette nint

A palette handle used to create the bitmap. For a non-palettized bitmap, use Zero.

option BitmapAlphaChannelOption

The alpha channel options to create the bitmap.

Returns

IBitmap