This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a co...
If you think the Android project AndroidFramework 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 com.mdobbins.framework;
/*www.java2s.com*/import 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);
}