Cogl.Bitmap¶
- Subclasses:
None
Methods¶
class |
|
class |
|
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- Return type:
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:
- Returns:
a
Cogl.Bitmap
to the new loaded image data, orNone
if loading the image failed.- Return type:
Loads an image file from disk. This function can be safely called from within a thread.
New in version 1.0.