TextureDownloader.downloadBytes

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.

class TextureDownloader
downloadBytes
(
out size_t outStride
)

Parameters

outStride size_t

The stride of the resulting data in bytes

Return Value

Type: glib.bytes.Bytes

The downloaded pixels