crop bitmap in screen size from custom width

I have an big ImageView that load on Image from Url and I put in 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)

sorry for bad English!!!


Source: android

Leave a Reply