Hi,
Various options to load an image in an imageview.
The imageview is defined in a project fxml 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 any other Folder
* Load the image into the imageview:
imageview1.SetImage(fx.LoadImage("<folder path>", "myimage.png"))
Probably more ways...