public static void CopyArea(LImage image, LGraphics g, int x, int y, int width, int height, int dx, int dy) { LImage tmp = image.GetSubImage(x, y, width, height); g.DrawImage(tmp, x + dx, y + dy); tmp.Dispose(); tmp = null; }