W3Schools Learner's Blog

W3Schools Programming knowledge summary website



How to flip a bitmap image in android?

 How to flip a bitmap image in android? We can use matrix to do it.

public Bitmap flipBitmap(Bitmap bitmap) {
    Bitmap bitmap = new Bitmap();
    Bitmap bitmapRes = Bitmap.createBitmap(bitmap,0,0,bitmap.getWidth(),
    return bitmapRes;

It's easy to mirror a bitmap image.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.