I use PhotoView library: https://github.com/chrisbanes/PhotoView
This is my initial case; it's the PhotoView component (red square); the background is transparent. I load a standard picture inside.
Now, I want to extract the visible bitmap part to another bitmap:
Bitmap original = mPhotoView.getVisibleRectangleBitmap();
return Bitmap.createBitmap(original, 0, 0, original.getWidth(), original.getHeight(),
mPhotoView.getImageMatrix(), true);
but the result is bad, because there are black areas, and I don't know why... I just want extract only the area with the picture and not all PhotoView.
How to extract without background unused?
Thank you very much guys!