I have an big ImageView
that loads an Image from Url and I puts it in a ScrollView
.
I get bitmap from image view by this code :
Bitmap bitmapOrg =((BitmapDrawable) singleWallpaper.getDrawable()).getBitmap();
Now I want to crop from position of ScrollView
(ScrollX) to size of the screen and put them to new bitmap (What shows in just in display not others)
First get the screen size by
DisplayMetrics display=Context.getResources().getDisplayMetrics();
Now Crop the Bitmap
Bitmap.createScaledBitmap(Bitmap src, display.widthPixels, display.heightPixels, true);