Cogl.Bitmap

g Cogl.Bitmap Cogl.Bitmap

Subclasses:

None

Methods

class

get_size_from_file (filename)

class

new_from_file (filename)

Virtual Methods

None

Fields

None

Class Details

class Cogl.Bitmap
Abstract:

No

classmethod get_size_from_file(filename)
Parameters:

filename (str) – the file to check

Returns:

True if the image was successfully parsed

width:

return location for the bitmap width, or None

height:

return location for the bitmap height, or None

Return type:

(int, width: int, height: int)

Parses an image file enough to extract the width and height of the bitmap.

New in version 1.0.

classmethod new_from_file(filename)
Parameters:

filename (str) – the file to load.

Raises:

GLib.Error

Returns:

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

Return type:

Cogl.Bitmap

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

New in version 1.0.