Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture specific view on window #7

Open
rddewan opened this issue Feb 24, 2020 · 2 comments
Open

Capture specific view on window #7

rddewan opened this issue Feb 24, 2020 · 2 comments
Labels
question Further information is requested

Comments

@rddewan
Copy link

rddewan commented Feb 24, 2020

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

Thank you

@xzaleksey
Copy link
Contributor

xzaleksey commented Apr 28, 2020

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 xzaleksey added the question Further information is requested label Apr 28, 2020
@rddewan
Copy link
Author

rddewan commented May 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants