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?
Asked
Active
Viewed 137 times
2
-
What is small for you? – May 06 '13 at 07:48
-
2an actual example of the image would be helpful. – Dick Faps May 06 '13 at 07:49
3 Answers
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).
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