Picture VerticalResolution and HorizontalResolution does not work in Web App

In a desktop app, I can display an image at 100%, then click a button to scale the picture 50% and increase Vertical and Horizontal resolution to 144. The displayed picture is crisp.

With the same code in a Web app, I see a grossly distorted scaled image. From the debugger I see the new Pic is still 72 dpi.

Public Function ScaledPic(p as Picture, W as Integer, H as Integer, Multiplier as integer) As Picture
Var Pic As New Picture(W/Multiplier, H/Multiplier)
Pic.VerticalResolution = 72 * Multiplier
Pic.HorizontalResolution = 72 * Multiplier
Pic.Graphics.DrawPicture(p, 0, 0, Pic.Width, Pic.Height, 0, 0, p.Width, p.Height)
Return Pic
End Function

Any work-arounds to display scaled images in a Web Framework 2 app?

I may have found another clue to this bug. If you create a picture with horizontal and vertical resolution of 144 and add it to your Web 2.0 project, it will display nicely on a Retina display in the browser. If you view the VerticalResolution or HorizontalResolution properties of the picture, it shows it to be 72 even though it must really be 144.

To summarize, all pictures created by your Web 2.0 are 72 dpi resolution and when scaled will display poorly. However, hi res pictures created at design time will display fine.