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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    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

This function is free to use.

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


ImageView.SetFrameWithControl - ImageView.SetTag

💬 Ask a question or report a problem