Official Content

Changes images in run-time.

Syntax

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.

Scope

Data type: Bitmaps
Generators:  .NETJava, AndroidApple

Samples

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

See Also

Image object

 




 



Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant