Home » » Create upside down bitmap with matrix

Create upside down bitmap with matrix

Written By MR HARI on Selasa, 03 September 2013 | 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

Share this article :

0 komentar:

Posting Komentar

 
Support : Your Link | Your Link | Your Link
Copyright © 2013. Android Center - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger