Breaking News
Loading...
Tuesday, 3 September 2013

Create upside down bitmap with matrix

06:50
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

0 comments:

Post a Comment

 
Toggle Footer