Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

ImageView.SetImage

Sets the image to be shown in the image view.

Component Version macOS Windows Linux Server iOS SDK
ImageView 7.4 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "ImageView.SetImage"; ImageView; image )   More

Parameters

Parameter Description Example
ImageView The image view reference number. $$ImageView
image the image to use.
For best results, pass a container value with a PNG image.
For animation, pass a GIF image.

Result

Returns OK or error.

Description

Sets the image to be shown in the image view.
We treat GIF images special and animate them.

Examples

Sets image:

Set Variable [ $r ; Value: MBS("ImageView.SetImage"; $$ImageView; ImageView::ImageContainer) ]

See also

Example Databases

Created 14th September 2017, last changed 14th September 2017


ImageView.SetFrameWithControl - ImageView.SetTag

Feedback: Report problem or ask question.