download_bytes


Description:

public Bytes download_bytes (out size_t out_stride)

Downloads the given texture pixels into a `GBytes`.

The rowstride will be stored in the stride value.

This function will abort if it tries to download a large texture and fails to allocate memory. If you think that may happen, you should handle memory allocation yourself and use [method@Gdk.TextureDownloader.download_into] once allocation succeeded.

Parameters:

this

the downloader

out_stride

The stride of the resulting data in bytes

Returns:

The downloaded pixels