Android: how to convert whole ImageView to Bitmap?

Posted by yosh on Stack Overflow See other posts from Stack Overflow or by yosh
Published on 2011-01-17T15:48:27Z Indexed on 2011/01/17 19:53 UTC
Read the original article Hit count: 133

Filed under:
|
|
|
|

I have my application that is displaying images with different ratio, resized inside (centerInside) imageView. What I need is to create bitmap from the ImageView including the background (black in this case).

So for example I have device screen 320x480, full screen imageView with image resized to 280x480. How could I get 320x480 bitmap from it?

On top of this imageview I have some logos or buttons that I don't want to include to bitmap, they're like on top layer. All I need is bitmap with image and black border from some sides.

© Stack Overflow or respective owner

Related posts about android

Related posts about image