MobileImageViewer

From Xojo Documentation

Class (inherits from MobileUIControl)

New in 2020r2

Displays an image.

Enumerations
DisplayModes
Events
Closing Opening
Methods
AddConstraint ControlAt RemoveConstraint
AddControl Handle RemoveControl
ClearFocus Refresh SetFocus
Properties
AccessibilityHint Height fa-lock-32.png TintColor
AccessibilityLabel Image Top fa-lock-32.png
ControlCount Left fa-lock-32.png Visible
DisplayMode Name fa-lock-32.png Width fa-lock-32.png
Enabled Parent fa-lock-32.png

Example Code

This code is executed from the Opening Event Handler in the default "Screen1" MobileScreen. It sets the DisplayMode and sets the image to one from the project (AppleImage).

ImageViewer1.DisplayMode = MobileImageViewer.DisplayModes.ScaleAspectFit // Set how the image will be displayed
ImageViewer1.Image = AppleImage

See Also

Picture class