Exemple #1
0
 public static void renderFunc(
     object img,
     short xdst,
     short ydst,
     short w,
     short h,
     short xsrc,
     short ysrc)
 {
     SDKUtils.getGraphics().drawRegion((Image)img, (int)xsrc, (int)ysrc, (int)w, (int)h, 0, (int)xdst, (int)ydst, 9);
 }
Exemple #2
0
 public static void drawRegion(
     Image img,
     int xsrc,
     int ysrc,
     int w,
     int h,
     int transform,
     int x,
     int y,
     int anchor)
 {
     SDKUtils.getGraphics().drawRegion(img, xsrc, ysrc, w, h, transform, x, y, anchor);
 }
Exemple #3
0
 public static void fillTriangle(int x0, int y0, int x1, int y1, int x2, int y2, int color)
 {
     SDKUtils.getGraphics().fillTriangle(x0, y0, x1, y1, x2, y2);
 }