WebPicture.Constructor(file as FolderItem)

From Xojo Documentation

Constructor
WebPicture.Constructor(file as FolderItem)

Creates a WebPicture from the specified file.

Example

Gets a picture from a file on disk and uses it to create a WebPicture:

Dim picFile As New FolderItem("MyPicture.png")
If picFile <> Nil And picFile.Exists Then
Dim myPic As New WebPicture(picFile)
End If