### Load Image to ImageView

Various options to load an image in an imageview.
The imageview is defined in a project layout file.
Load an Image from the DirAssets folder
• Copy the imagefile to the DirAssets folder. This is the Files folder.
• Add the imagefile to the IDE files list. Via the Files tab.
• Note: If this is omitted, a runtime error "File not found" occurs.
• Load the image into the imageview:
imageview1.SetImage(fx.LoadImage(File.DirAssets, "myimage.png"))
Load an Image from the DirApp folder
• Copy the imagefile to the DirApp folder. This is the Objects folder.
• Load the image into the imageview:
imageview1.SetImage(fx.LoadImage(File.DirApp, "myimage.png"))
Load an Image from other Folder
• Load the image into the imageview:
imageview1.SetImage(fx.LoadImage("c:\Daten\bitsound\OpenIconLib\icons\png\22x22\actions\", "myimage.png"))

Changed: 2017-11-08 10:01, Category: Image and ImageView, File: T6C199M1466.htm, ID: 1466