Package: gdk
Function gdk:texture-new-from-filename
Lambda Listgdk:texture-new-from-filename (path) ArgumentsReturn ValueThe newly created gdk:texture object. Details
Creates a new texture by loading an image from a file.
The file format is detected automatically. The supported formats are PNG and
JPEG, though more formats might be available. This function is threadsafe, so that you can, for example, use the g:task object and the g:task-run-in-thread function to avoid blocking the main thread while loading a big image. Since 4.6 | See also |
2025-2-8