set_from_data


Description:

public bool set_from_data (uint8[] data, PixelFormat pixel_format, int width, int height, int rowstride) throws Error

Set the image data from a buffer.

In case of failure, false is returned and error is set.

Parameters:

this

An Image

data

Image data

pixel_format

The PixelFormat of the buffer

width

Width in pixels of image data.

height

Height in pixels of image data

rowstride

Distance in bytes between row starts.

Returns:

true if the image was successfully updated




2022 vala-language.org