public override void RenderTo(IntPtr destHdc, int sourceX, int sourceY, Rectangle destArea) { MyWin32.SetViewportOrgEx(win32MemDc.DC, CanvasOrgX, CanvasOrgY, IntPtr.Zero); MyWin32.BitBlt( destHdc, destArea.X, destArea.Y, destArea.Width, destArea.Height, //dest win32MemDc.DC, sourceX, sourceY, MyWin32.SRCCOPY); //src MyWin32.SetViewportOrgEx(win32MemDc.DC, -CanvasOrgX, -CanvasOrgY, IntPtr.Zero); }
public override void RenderTo(IntPtr destHdc, int sourceX, int sourceY, Rectangle destArea) { IntPtr gxdc = gx.GetHdc(); MyWin32.SetViewportOrgEx(gxdc, CanvasOrgX, CanvasOrgY, IntPtr.Zero); MyWin32.BitBlt(destHdc, destArea.X, destArea.Y, destArea.Width, destArea.Height, gxdc, sourceX, sourceY, MyWin32.SRCCOPY); MyWin32.SetViewportOrgEx(gxdc, -CanvasOrgX, -CanvasOrgY, IntPtr.Zero); gx.ReleaseHdc(); }