[ Version ( since = "1.12" ) ]
public bool set_bytes (Bytes data, PixelFormat pixel_format, uint width, uint height, uint row_stride) throws Error
Sets the image data stored inside a Bytes to be displayed by this.
If the image data was successfully loaded, the this will be invalidated.
In case of error, the error
value will be set, and this function will return false
.
The image data contained inside the Bytes is copied in texture memory, and no additional reference is acquired
on the data
.
this |
a Image |
data |
the image data, as a Bytes |
pixel_format |
the Cogl pixel format of the image data |
width |
the width of the image data |
height |
the height of the image data |
row_stride |
the length of each row inside |
|