GBytes* gdk_texture_downloader_download_bytes ( const GdkTextureDownloader* self, gsize* 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
once allocation succeeded.
Available since: 4.10
The stride of the resulting data in bytes.
The argument will be set by the function.
The downloaded pixels.
|The caller of the method takes ownership of the data, and is responsible for freeing it.|