Package: gdk

Function gdk:texture-new-from-resource

Lambda List

gdk:texture-new-from-resource (path)

Arguments

path -- a string with the path of the resource file

Return Value

A newly created gdk:texture object.

Details

Creates a new texture by loading an image from a resource. The file format is detected automatically. The supported formats are PNG and JPEG, though more formats might be available.

It is a fatal error if path does not specify a valid image resource and the program will abort if that happens. If you are unsure about the validity of a resource, use the gdk:texture-new-from-file function to load it.
 

See also

#2023-4-12