public interface Graphics
Modifier and Type | Interface and Description |
---|---|
static class |
Graphics.PixmapFormat |
Modifier and Type | Method and Description |
---|---|
void |
clear(int color) |
void |
drawLine(int x,
int y,
int x2,
int y2,
int color) |
void |
drawPixel(int x,
int y,
int color) |
void |
drawPixmap(Pixmap pixmap,
int x,
int y) |
void |
drawPixmap(Pixmap pixmap,
int x,
int y,
int srcX,
int srcY,
int srcWidth,
int srcHeight) |
void |
drawRect(int x,
int y,
int width,
int height,
int color) |
void |
drawText(java.lang.String text,
int x,
int y,
int color,
int size)
Additional method to this frame: Use to draw text on screen
|
int |
getHeight() |
int |
getWidth() |
Pixmap |
newPixmap(java.lang.String fileName,
Graphics.PixmapFormat format) |
Pixmap newPixmap(java.lang.String fileName, Graphics.PixmapFormat format)
void clear(int color)
void drawPixel(int x, int y, int color)
void drawLine(int x, int y, int x2, int y2, int color)
void drawRect(int x, int y, int width, int height, int color)
void drawPixmap(Pixmap pixmap, int x, int y, int srcX, int srcY, int srcWidth, int srcHeight)
void drawPixmap(Pixmap pixmap, int x, int y)
int getWidth()
int getHeight()
void drawText(java.lang.String text, int x, int y, int color, int size)