public class Background
extends java.lang.Object
Constructor and Description |
---|
Background(android.graphics.Bitmap img,
double xFrom,
double yFrom,
int width,
int height) |
Background(int color) |
Background(android.graphics.Shader gradient) |
Modifier and Type | Method and Description |
---|---|
void |
applyPaint(android.graphics.Canvas c,
android.graphics.Paint p) |
static android.graphics.Bitmap |
getResizedBitmap(android.graphics.Bitmap bm,
int newWidth,
int newHeight) |
boolean |
isImage() |
void |
removePaint(android.graphics.Paint p) |
java.lang.String |
toString() |
public Background(int color)
public Background(android.graphics.Shader gradient)
public Background(android.graphics.Bitmap img, double xFrom, double yFrom, int width, int height)
public static android.graphics.Bitmap getResizedBitmap(android.graphics.Bitmap bm, int newWidth, int newHeight)
public void applyPaint(android.graphics.Canvas c, android.graphics.Paint p)
public void removePaint(android.graphics.Paint p)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isImage()