UserGuide

Difference between revisions of "Desktop Image Viewer"

From Xojo Documentation

m (Usage: removed simply)
 
Line 1: Line 1:
 
__TOC__
 
__TOC__
 +
 
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.
 
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.
 
[[File:Image Well Library Icon.png|thumb|Image Viewer Library Icon]]
 
[[File:Image Well Library Icon.png|thumb|Image Viewer Library Icon]]
Line 7: Line 8:
  
 
== Usage ==
 
== 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:
+
Do display a picture in the Image Viewer, set its Image property. This code in a Button's Action event assigns a Picture that is included in the project:
 
<rbcode>
 
<rbcode>
 
ImageViewer1.Image = MyPicture
 
ImageViewer1.Image = MyPicture

Latest revision as of 22:37, 18 January 2022

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, 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