download_bytes
Description:
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.
This function cannot be used with a multiplanar format. Use [method@Gdk.TextureDownloader.download_bytes_with_planes] for that purpose.
Parameters:
this |
the downloader |
out_stride |
The stride of the resulting data in bytes |
Returns:
The downloaded pixels |