0

I am able to take the screenshot of the content that is visible on the webpage, but how I do take the entire webpage screenshot?

This is what I am currently doing

Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
view.draw(canvas);

fos = new FileOutputStream(path);
bitmap.compress(Bitmap.CompressFormat.PNG, 50, fos);
fos.flush();
fos.close()

0 Answers0