public static CreateMemoryHdc ( |
||
hdc | the HDC to create memory HDC from | |
width | int | the width of the memory HDC to create |
height | int | the height of the memory HDC to create |
dib | returns used bitmap memory section that must be released when done with memory HDC | |
ppvBits | ||
return |
public NativeWin32MemoryDc(int w, int h, bool invertImage = false) { this._width = w; this._height = h; memHdc = MyWin32.CreateMemoryHdc( IntPtr.Zero, w, invertImage ? -h : h, //*** out dib, out ppvBits); }
public NativeWin32MemoryDC(int w, int h, bool invertImage = false) { _width = w; _height = h; _invertedImage = invertImage; _memHdc = MyWin32.CreateMemoryHdc( IntPtr.Zero, w, invertImage ? -h : h, //*** out _dib, out _ppvBits); }