UserGuide

Desktop Image Viewer

From Xojo Documentation

Revision as of 23:25, 17 September 2021 by Gperlman (talk | contribs)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

The Image Viewer control provides an area in which you can display a BMP or PNG image on Windows and Linux or a JPG or PNG image on macOS. You can easily program the Image Viewer control to accept a dragged picture.

Image Viewer Library Icon

Properties

Image - The image to display.

Usage

Do display a picture in the Image Viewer, simply set its Image property. This code in a Button's Action event assigns a Picture that is included in the project:

ImageViewer1.Image = MyPicture

See Also

DesktopImageViewer, Picture classes