MobileImageViewer

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from MobileUIControl)

New in 2020r2

Displays an image.

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

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