Package: gtk
Function gtk-image-new-from-resource
Lambda Listgtk-image-new-from-resource (resource) ArgumentsReturn ValueA new gtk-image widget. Details Creates an image displaying the resource file in resource. If the file is not found or can not be loaded, the resulting gtk-image widget will display a "broken image" icon. This function always returns a valid gtk-image widget. If the file contains an animation, the image will contain an animation. If you need to detect failures to load the file, use the gdk-pixbuf-new-from-resource function to load the file yourself, then create the gtk-image widget from the pixbuf, or for animations, use the gdk-pixbuf-animation-new-from-resource function. 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 |
2021-12-17