Updated to work with new BITMAPINFO changes

pull/250/head
dahall 2021-05-29 08:09:38 -06:00
parent 50c6b13781
commit 221385fd00
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ namespace Vanara.Extensions
{
// Create a device-independent bitmap and select it into our DC
var info = new BITMAPINFO(bounds.Width, -bounds.Height);
using (memoryHdc.SelectObject(CreateDIBSection(HDC.NULL, ref info, DIBColorMode.DIB_RGB_COLORS, out var ppv, IntPtr.Zero, 0)))
using (memoryHdc.SelectObject(CreateDIBSection(HDC.NULL, info, DIBColorMode.DIB_RGB_COLORS, out var ppv)))
{
using (var memoryGraphics = (Graphics)memoryHdc)
{