Changes images in run-time.
FromImage(<ImageName> | <String Expression>)
Where:
<ImageName>
Is the name of an Image object stored in the Knowledge Base.
<StringExpression>
Is a string expression that must evaluate to a valid image URL.
Data type: Bitmaps
Generators:
.NET, Java, Android, Apple
Example 1
Applies to Bitmap data type Variables and Image controls. If &Bitmap is a Bitmap data type variable, the following code will change the image displayed by it to MyNewImage.
&Bitmap.FromImage(MyNewImage)
Example 2
Applies to Bitmap data type Variables and Image controls. If &Bitmap is a Bitmap data type variable and &Image is a character variable whose value is "MyNewImage" the following code will change the image displayed by it to MyNewImage.
&Bitmap.FromImage(&Image)
Note: For Smart Devices applications, you can use this method into user event since
GeneXus 16 upgrade 1
Image object