If you think the Android project AndroidGameDev listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package cc.rafazz.framework;
//www.java2s.comimport android.graphics.Paint;
publicinterface Graphics {
publicstaticenum ImageFormat {
ARGB8888, ARGB4444, RGB565
}
public Image newImage(String fileName, ImageFormat format);
publicvoid clearScreen(int color);
publicvoid drawLine(int x, int y, int x2, int y2, int color);
publicvoid drawRect(int x, int y, int width, int height, int color);
publicvoid drawImage(Image image, int x, int y, int srcX, int srcY,
int srcWidth, int srcHeight);
publicvoid drawImage(Image Image, int x, int y);
void drawString(String text, int x, int y, Paint paint);
publicint getWidth();
publicint getHeight();
publicvoid drawARGB(int i, int j, int k, int l);
}