public class AndroidCanvas
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
android.graphics.Canvas |
canvas |
| Constructor and Description |
|---|
AndroidCanvas() |
AndroidCanvas(android.graphics.Canvas canvas) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBitmap(Bitmap bitmap,
float x,
float y) |
void |
drawBitmapScaled(Bitmap bitmap) |
void |
drawCircle(float x,
float y,
float radius,
Paint paint) |
void |
drawLine(float x1,
float y1,
float x2,
float y2,
Paint paint) |
void |
drawText(java.lang.String string,
float x,
float y,
Paint paint) |
void |
drawText(java.lang.String string,
float x,
float y,
Paint fill,
Paint stroke) |
void |
fillColor(int color) |
void |
fillRectangle(float x,
float y,
float width,
float height,
int color) |
int |
getHeight() |
int |
getWidth() |
void |
setBitmap(Bitmap bitmap) |
public AndroidCanvas()
public AndroidCanvas(android.graphics.Canvas canvas)
public void setBitmap(Bitmap bitmap)
public void drawText(java.lang.String string,
float x,
float y,
Paint paint)
public void drawText(java.lang.String string,
float x,
float y,
Paint fill,
Paint stroke)
public void drawBitmap(Bitmap bitmap,
float x,
float y)
public void drawBitmapScaled(Bitmap bitmap)
public void drawCircle(float x,
float y,
float radius,
Paint paint)
public void drawLine(float x1,
float y1,
float x2,
float y2,
Paint paint)
public void fillColor(int color)
public void fillRectangle(float x,
float y,
float width,
float height,
int color)
public int getHeight()
public int getWidth()