API Diff Specification
To Version: Android SDK 0.9_r1
From Version: Android SDK m5-rc14
Generated 2008.08.14 15:44

Class android.graphics.Canvas

Added Constructors
Canvas(GL) Construct a canvas with the specified gl context.
 

Removed Methods
int getBitmapHeight() Returns the height of the current drawing layer
int getBitmapWidth() Returns the width of the current drawing layer
Matrix getCTM() Return a new matrix with a copy of the canvas' current transformation matrix.
void getCTM(Matrix) Return, in ctm, the current transformation matrix.
boolean isBitmapOpaque() Return true if the bitmap that the current layer draws into is opaque (i.e.
void setDevice(Bitmap) Specify a bitmap for the canvas to draw into.
 

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.
 

Changed Methods
void drawArc(RectF, float, float, boolean, Paint) Change in signature from (RectF, float, float, Paint) to (RectF, float, float, boolean, Paint).
Draw the specified arc, which will be scaled to fit inside the specified oval.
 

Added Fields
int ALL_SAVE_FLAG restore everything when restore() is called
 

©2008 Google - Code Home - Site Terms of Service - Privacy Policy
Generated by JDiff