3

I am using imageview with rotating and zooming the image in imageview by two fingers. when i zoom the image its zooming i want part of image which is seen on imageview currently after zooming How can i do this please help me for this is it possible to take snapshot of that imageview of that time instant.

Cœur
  • 34,719
  • 24
  • 185
  • 251
Ajay S
  • 47,080
  • 27
  • 87
  • 105

1 Answers1

0

Perhaps the following, where v1 is your ImageView, and the body here would be called from some 'capture' button.

v1.setDrawingCacheEnabled(true);
bitmap = Bitmap.createBitmap(v1.getDrawingCache());

Source: here.

Community
  • 1
  • 1
Josh
  • 12,218
  • 10
  • 71
  • 117