2

I'm displaying images from various of sources, and can't control the quality I get, I want to display all images in same size and make them look good no matter how small they are. Is there a filter, magic effect, whatever I can do to the image to make it look good?

Chen Kinnrot
  • 20,609
  • 17
  • 79
  • 141

3 Answers3

1

You mean fitting a low-resolution image into a large frame size and still look good and sharp? Android doesn't have this magic. Sorry

Neoh
  • 15,906
  • 14
  • 66
  • 78
  • I know there are no magics... it shouldn't look sharp.. just looking for a good enough algorithm to make it look nice.. – Chen Kinnrot May 10 '13 at 08:31
0

You could apply a blur effect on your image, which is what most modern browsers and image viewers do nowadays in order not just to show a big block of pixels - not sure what your scenario is though (native or HTML5 app ? Are the images bundled into the app or are you loading online resources?)...

For starters, here's a nice tutorial on different blur techniques incl. java code samples (Found in this post).

Community
  • 1
  • 1
Philzen
  • 3,945
  • 30
  • 46
0

The closest thing Android comes with is to use paint.setFilterBitmap(true) for the paint you use to draw the bitmap.

yoah
  • 7,180
  • 2
  • 30
  • 30