TextureDownloader.downloadBytes

glib.bytes.Bytes downloadBytes(out size_t outStride)

Downloads the given texture pixels into a [glib.bytes.Bytes]. 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 [gdk.texture_downloader.TextureDownloader.downloadInto] once allocation succeeded.

Parameters

outStrideThe stride of the resulting data in bytes

Returns

The downloaded pixels