コード例 #1
0
ファイル: GLLoader.cs プロジェクト: zhwk022/LGame
        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;
        }
コード例 #2
0
ファイル: GLLoader.cs プロジェクト: keppelcao/LGame
 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;
 }