Added Methods
|
void drawBitmap(Bitmap, Matrix, Paint)
|
Draw the bitmap using the specified matrix. |
void drawBitmap(int[], int, int, int, int, int, int, boolean, Paint)
|
Treat the specified array of colors as a bitmap, and draw it. |
void drawBitmapMesh(Bitmap, int, int, float[], int, int[], int, Paint)
|
Draw the bitmap through the mesh, where mesh vertices are evenly
distributed across the bitmap. |
void drawLines(float[], Paint)
|
|
void drawLines(float[], int, int, Paint)
|
Draw a series of lines. |
void drawPicture(Picture, Rect)
|
Draw the picture, stretched to fit into the dst rectangle. |
void drawPicture(Picture, RectF)
|
Draw the picture, stretched to fit into the dst rectangle. |
void drawVertices(VertexMode, int, float[], int, float[], int, int[], int, short[], int, int, Paint)
|
Draw the array of vertices, interpreted as triangles (based on mode). |
void freeGlCaches()
|
Call this to free up OpenGL resources that may be cached or allocated
on behalf of the Canvas. |
GL getGL()
|
Return the GL object associated with this canvas, or null if it is not
backed by GL. |
int getHeight()
|
Returns the height of the current drawing layer
|
Matrix getMatrix()
|
Return a new matrix with a copy of the canvas' current transformation
matrix. |
void getMatrix(Matrix )
|
Return, in ctm, the current transformation matrix. |
int getWidth()
|
Returns the width of the current drawing layer
|
boolean isOpaque()
|
Return true if the device that the current layer draws into is opaque
(i.e. |
void setBitmap(Bitmap )
|
Specify a bitmap for the canvas to draw into. |
void setMatrix(Matrix )
|
Completely replace the current matrix with the specified matrix. |
void setViewport(int, int)
|
Set the viewport dimensions if this canvas is GL based. |