Hi there,
I don't know how common is this problem :)
I've been trying to create a view that extends ImageView. What I do is I
then overlay some simple drawing (circles, squares, ...) with drawCircle,
drawRect, etc..., and some text. I then try and save using
{
this.setDrawingCacheEnabled(true);
Bitmap b = this.getDrawingCache();
b.compress(CompressFormat.PNG, 100, fos);
}
where fos is a generic FileOutputStream.
This works, creating a PNG. However, the resulting image is frankly very low
quality. Especially the text looks extremely bad and "100" should be the
quality (0->100 maximum) of the image, however it's not used in lossless
PNG.
I tried JPG with similar results
So the questions:
- is this the correct way of saving an ImageView to file?
- is there any way of specifying a better quality?
Thanks,
Giuseppe
--@puntofisso
--
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