Beispiel #1
0
 // int ReleaseDC(HWND hWnd, HDC hDC)
 public static int ReleaseDC(int hWnd, int hDC) {
   WinDC dc = WinDC.get(hDC);
   if (dc == null) return 0;
   if (dc.isScreen()) {
     Main.drawImage(dc.getImage());
   }
   dc.close();
   return 1;
 }