Beispiel #1
0
 public MemoryBitmap(int w, int h)
 {
     m_hDC     = User32.GetDC(default(HWND));
     m_bmp     = Gdi32.CreateCompatibleBitmap(m_hDC, w, h);
     DC        = Gdi32.CreateCompatibleDC(m_hDC);
     m_hOrgBMP = Gdi32.SelectObject(DC, m_bmp.Value);
 }
Beispiel #2
0
 public static extern int GetDIBits(
     HDC hdc,
     HBITMAP hbm,
     UINT start,
     UINT cLines,
     byte[] lpvBits,
     ref BITMAPINFOHEADER lpbmi,
     DIB usage
     );