Package: gtk
Function gtk:image-new-from-file
Lambda Listgtk:image-new-from-file (path) ArgumentsReturn ValueThe new gtk:image widget. Details Creates a new image displaying the file path. This function always returns a valid gtk:image widget. If the file is not found or cannot be loaded, the resulting gtk:image widget will
display a "broken image" icon. If you need to detect failures to load the file, use the gdk:texture-new-from-file function to load the file yourself, then create the gtk:image widget from the texture. The storage type, see the gtk:image-storage-type function, of the returned image is not defined, it will be whatever is appropriate for displaying the file. | See also |
2025-3-2