UserGuide

Web Image Viewer

From Xojo Documentation

Revision as of 19:12, 25 August 2020 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Image Viewer provides a way to display a JPEG or PNG image from your project, or link to a picture at an URL. To specify a picture, use the Picture property in the Inspector. To specify a picture on the web use the URL property.

Commonly used properties are listed below. Refer to WebImageViewer in the Language Reference for the complete list.

Properties

Picture

Specifies the picture (JPG or PNG) to display.

URL

Specifies a URL of a picture (JPG or PNG) to display.

Usage

To display a picture that has been added to the project, assign the Picture property:

ImageViewer1.Picture = MyPicture

You can also point the Image Viewer to a picture from a web site by using the URL property:

ImageViewer1.URL = "http://www.mydomain.com/mypicture.png"

See Also

WebImageViewer class; UserGuide:Web UI topic