Difference between revisions of "Desktop Image Viewer"
From Xojo Documentation
(Created page with "N/A") |
|||
Line 1: | Line 1: | ||
− | + | __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. | ||
+ | [[File:Image Well Library Icon.png|thumb|Image Viewer Library Icon]] | ||
+ | |||
+ | == Properties == | ||
+ | [[ImageWell.Image|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: | ||
+ | <rbcode> | ||
+ | ImageViewer1.Image = MyPicture | ||
+ | </rbcode> | ||
+ | |||
+ | == See Also == | ||
+ | [[DesktopImageViewer]], [[Picture]] classes | ||
+ | |||
+ | [[Category:User Guide]] | ||
+ | [[Category:User Guide Desktop]] | ||
+ | [[Category:User Guide Desktop UI]] | ||
+ | [[Category:User Guide Desktop Viewers]] |
Revision as of 23:25, 17 September 2021
Contents
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.
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