Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- ImageView.CreateWithControl
- ImageView.CreateWithSize
- ImageView.GetTag
- ImageView.Release
- ImageView.SetFrame
- ImageView.SetTag
Example Databases
This function is free to use.
Created 14th September 2017, last changed 14th September 2017