Creates a copy of the downloader.
This function is meant for language bindings.
A copy of the downloader
Downloads the given texture pixels into a GLib.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.TextureDownloader.download_into once allocation succeeded.
This function cannot be used with a multiplanar format. Use Gdk.TextureDownloader.download_bytes_with_planes for that purpose.
The downloaded pixels
Downloads the given texture pixels into a GLib.Bytes. The offsets and strides of the resulting buffer will be stored in the respective values.
If the format does have less than 4 planes, the remaining offsets and strides will be
set to 0.
The downloaded pixels
Downloads the texture into local memory.
This function cannot be used with a multiplanar format.
pointer to enough memory to be filled with the downloaded data of the texture
rowstride in bytes
Frees the given downloader and all its associated resources.
Gets the color state that the data will be downloaded in.
The color state of the download
Gets the format that the data will be downloaded in.
The format of the download
Sets the color state the downloader will convert the data to.
By default, the sRGB colorstate returned by ColorState.get_srgb is used.
the color state to use
Sets the format the downloader will download.
By default, GDK_MEMORY_DEFAULT is set.
the format to use
Staticnew
Used to download the contents of a Gdk.Texture.
It is intended to be created as a short-term object for a single download, but can be used for multiple downloads of different textures or with different settings.
Gdk.TextureDownloader can be used to convert data between different formats. Create a Gdk.Texture for the existing format and then download it in a different format.
Since
4.10