WebPicture.Constructor(file as FolderItem)

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Constructor

WebPicture.Constructor(file as FolderItem)

New in 2011r4

Creates a WebPicture from the specified file.

Example

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

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