Cogl.Bitmap – doc Reference Manual
Packages
doc
Cogl
Bitmap
get_size_from_file
Bitmap
Bitmap.for_data
Bitmap.from_buffer
Bitmap.from_file
Bitmap.with_size
get_buffer
get_format
get_height
get_rowstride
get_width
Bitmap
Object Hierarchy:
Description:
public
class
Bitmap
:
Object
Namespace:
Cogl
Package:
doc
Content:
Static methods:
public
static
Bool
get_size_from_file
(
string
filename,
out
int
width,
out
int
height)
Parses an image file enough to extract the width and height of the bitmap.
Creation methods:
protected
Bitmap
()
public
Bitmap.for_data
(
Context
context,
int
width,
int
height,
PixelFormat
format,
int
rowstride,
uint8
data)
Creates a bitmap using some existing data.
public
Bitmap.from_buffer
(
Buffer
buffer,
PixelFormat
format,
int
width,
int
height,
int
rowstride,
int
offset)
Wraps some image data that has been uploaded into a
Buffer
as a
Bitmap
.
public
Bitmap.from_file
(
string
filename)
throws
Error
Loads an image file from disk.
public
Bitmap.with_size
(
Context
context,
uint
width,
uint
height,
PixelFormat
format)
Creates a new
Bitmap
with the given width, height and format.
Methods:
public
weak
PixelBuffer
get_buffer
()
public
PixelFormat
get_format
()
public
int
get_height
()
public
int
get_rowstride
()
public
int
get_width
()
Inherited Members:
All known members inherited from class Cogl.Object
value_set_object