Class
CoglBitmap
Constructors
cogl_bitmap_new_for_data
Creates a bitmap using some existing data. The data is not copied
so the application must keep the buffer alive for the lifetime of
the CoglBitmap
. This can be used for example with
cogl_framebuffer_read_pixels_into_bitmap()
to read data directly
into an application buffer with the specified rowstride.
Available since: 1.10
cogl_bitmap_new_from_buffer
Wraps some image data that has been uploaded into a CoglBuffer
as
a CoglBitmap
. The data is not copied in this process.
Available since: 1.8
cogl_bitmap_new_from_file
Loads an image file from disk. This function can be safely called from within a thread.
Available since: 1.0
cogl_bitmap_new_with_size
Creates a new CoglBitmap
with the given width, height and format.
The initial contents of the bitmap are undefined.
Available since: 1.10
Instance methods
Methods inherited from CoglObject (2)
cogl_object_get_user_data
Finds the user data previously associated with object
using
the given key
. If no user data has been associated with object
for the given key
this function returns NULL.
Available since: 1.4
cogl_object_set_user_data
Associates some private user_data
with a given CoglObject
. To
later remove the association call cogl_object_set_user_data()
with
the same key
but NULL for the user_data
.
Available since: 1.4
Functions
cogl_bitmap_error_quark
cogl_bitmap_get_size_from_file
Parses an image file enough to extract the width and height of the bitmap.
Available since: 1.0