screenshotty icon indicating copy to clipboard operation
screenshotty copied to clipboard

Capture specific view on window

Open rddewan opened this issue 5 years ago • 2 comments

I want to capture a specific view only .I did not found any documentation on it . Is this function available ?

Thank you

rddewan avatar Feb 24 '20 02:02 rddewan

Do you need a function to get a screenshot just from view? This can be done like below: public static Bitmap shot(View view) { view.setDrawingCacheEnabled(true); Bitmap bitmap = view.getDrawingCache(); view.setDrawingCacheEnabled(false); return bitmap; }

Or do you need an option to get view region with all dialogs above?

xzaleksey avatar Apr 28 '20 11:04 xzaleksey

thanks i got it i was wondering if it was possible using this library

rddewan avatar May 01 '20 04:05 rddewan