Geomatics.Windows.Interop by Christian Junk

<PackageReference Include="Geomatics.Windows.Interop" Version="0.0.0" />

 BitmapUtils

public class BitmapUtils
public BitmapUtils()

public static Bitmap ConvertDibToBitmap(IntPtr pDib)

public static bool Equals(Bitmap bmp1, Bitmap bmp2)

public static bool FillBitmapFileHeader(IntPtr pDib, out BITMAPFILEHEADER pbmfh)

public static bool GetBitmapDimensions(IntPtr pDib, out int pWidth, out int pHeight)

public static uint GetBitmapHeaderSize(IntPtr pDib)

public static uint GetBitmapOffsetBits(IntPtr pDib)

public static uint GetBitmapSize(IntPtr pDib)

public static bool SaveBitmapToFile(Bitmap bitmap, FileInfo file)

public static bool SaveDibToFile(IntPtr pDib, FileInfo file)