Hi all!
I want to capture the visible area of the webview.
I used getDrawingCache() and it captures the visible area of the
webview.
But the scaled bitmap seems to be incorrect, the text is blurry.
here is my code:
--------------
webView = (WebView)findViewById(R.id.web);
webView.setDrawingCacheEnabled(true);
webView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_AUTO);
Bitmap screenCapture = webView.getDrawingCache();
FileOutputStream fos = null;
fos = new FileOutputStream( "/sdcard/img_" +
System.currentTimeMillis() + ".jpg" );
if ( fos != null )
{
screenCapture .compress(Bitmap.CompressFormat.JPEG, 100,
fos );
fos.close();
}
--------------
Does anyone know how to solve my problem, how to prevent the text from
scaling?
tnx in advance!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en