Android - Matrix
Android provides a very neat and nice way to perform image transformation. The class is Matrix.
For example, if you are at a ImageView, you could scale the underlying bitmap image by the following codes
public void scale(){//define a new matrixMatrix m = new Matrix();//double the scalem.postScale(2.0f, 2.0f);//set matrix to imagesetImageMatrix(m);}
By doing the above, the bitmap image will be scaled on next draw
Comments
Post a Comment