get_data


Description:

public int get_data (PixelFormat format, uint rowstride, uint8[] data)

Copies the pixel data from a cogl texture to system memory.

Note:

Don't pass the value of get_rowstride as the rowstride argument, the rowstride should be the rowstride you want for the destination data buffer not the rowstride of the source texture

Parameters:

this

a CoglTexture pointer.

format

the PixelFormat to store the texture as.

rowstride

the rowstride of data in bytes or pass 0 to calculate from the bytes-per-pixel of format multiplied by the this width.

data

memory location to write the this's contents, or null to only query the data size through the return value.

Returns:

the size of the texture data in bytes




2022 vala-language.org