Dim ImageWidth As Int
Dim ImageHeight As Int
Activity.LoadLayout("main")
WebView1.Width = 100%x
WebView1.Height = 100%y
ImageWidth = 305
ImageHeight = 515
WebView1.LoadHtml("<html><head></head><body><img src='http://www.domain/big-image.jpg' width='" & ImageWidth & "' height='" & ImageHeight & "'></body></html>")
End Sub