# Copyright 2013 JK Wood <joshuakwood@gmail.com>
# This framework is released under the Dog-on-Fire License:
# If use of this framework causes your dog to catch on fire,
# you agree to send me five d...
If you think the Android project GameEngine 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.slaxer.framework;
/*fromwww.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);
}