WebPicture.Constructor(file as FolderItem)

From Xojo Documentation

Revision as of 19:33, 2 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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