Please see the following method in this class: *android.graphics.Bitmap*
public static Bitmap *createScaledBitmap* (Bitmap src, int dstWidth, int dstHeight, boolean filter) Added in API level 1 Creates a new bitmap, scaled from an existing bitmap, when possible. If the specified width and height are the same as the current width and height of the source btimap, the source bitmap is returned and now new bitmap is created. Parameters src The source bitmap. dstWidth The new bitmap's desired width. dstHeight The new bitmap's desired height. filter true if the source should be filtered. Returns The new scaled bitmap or the source bitmap if no scaling is required. I bet when you set filter to true, it will look kind of like iOS. When it's false, I bet it looks bad like on your Android now. Note you will probably have to get rid of your WebView approach. On Tuesday, October 30, 2012 10:24:26 AM UTC-5, huberte wrote: > > Trying to load http://www.sciences-physiques.eu/appli/oneimage/ both in > iOS and Android (SGS2). > > Image is 1600*2262 > > The result is a better image on iOS. I know android can do better, because > I had an application with such big image downsized, and the text was > "clearer". > > I red a lot about adding some code in css, but it seems that it does not > apply to webkit > > Here are the screenshots : > > http://tof.canardpc.com/show/9144d047-0aaf-4906-9c96-1a991112f9fc.html > > http://tof.canardpc.com/show/36008198-e6ef-4b02-820b-fe2ca8b8df1c.html > > The code is : > > <!DOCTYPE HTML><html manifest="" lang="en-US"><head> > <meta charset="UTF-8"> > <title>carimage</title> > <style type="text/css"> > img { width: 100%; } > html, body { > height: 100%; > background-color: #1985D0 > } > </style> > <body> > <img src="1.png" /> > </body></html> > > just that you know, if I put max-width instead of width, the result is worse > than with only the "width" attribute > > Because I'll have physics, chemistry, math and for good rendering I use > Latek. So I have to use image. On Android my pupils say I could use something > better than a bad scanner. On iOS they say it's like in their books... > > Thanks a lot ! > > -- 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

