Tuesday, September 3, 2013

Create upside down bitmap with matrix

To create upside down bitmap with matrix:
     Matrix matrixUpsideDown = new Matrix(); 
     matrixUpsideDown.preScale(1.0f, -1.0f);
     bitmapMaster = Bitmap.createBitmap(
       tempBitmap, 
       0, 
       0, 
       tempBitmap.getWidth(), 
       tempBitmap.getHeight(), 
       matrixUpsideDown, 
       false);

Create upside down bitmap with matrix
 Refer to last exercise "Create mirror bitmap with matrix" for full example.



more: Something about processing images in Android

No comments: