Cogl.Bitmap.new_from_file

function new_from_file(filename: String): Cogl.Bitmap {
    // Gjs wrapper for cogl_bitmap_new_from_file()
}
  

Loads an image file from disk. This function can be safely called from within a thread.

Since 1.0

filename

the file to load.

Returns

a Cogl.Bitmap to the new loaded image data, or null if loading the image failed.