Hello!
I need your help!
I have several images in my webpage and I want to show these images in my webview. When I write webv(I).LoadUrl("http://www.xxxxxxx.photo.jpg") I can not see all the image, only a corner.
Is there any way of adjusting the image to the webview size?
I can't download these images to my app because there are a lot of them. I need to load it online. If I could load the images in an imageview, it would be perfect!
Thanks for you help.
Sub DownloadImage(Link As String, iv As ImageView)
Dim j As HttpJob
j.Initialize("", Me)
j.Download(Link)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
iv.Bitmap = j.GetBitmap
End If
j.Release
End Sub
either you use the real app way as Toky showed above with some aditional sizing code.
or you use a webview and put your images in an html file with the needed styling to make them fit to the given 'screen' (webview) size.
option 2 remains a oneliner while option 1 requires some more code especially when you want to display several images on screen with the correct aspect ratio etc...
it all depends what you want to do with the shown images.