Since 4.10copyCreates a copy of the downloader.
This function is meant for language bindings.
A copy of the downloader
Since 4.10download_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
Since 4.20download_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
Since 4.10download_Since 4.10freeSince 4.16get_Gets the color state that the data will be downloaded in.
The color state of the download
Since 4.10get_Gets the format that the data will be downloaded in.
The format of the download
Since 4.10get_Since 4.16set_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
Since 4.10set_Sets the format the downloader will download.
By default, GDK_MEMORY_DEFAULT is set.
the format to use
Since 4.10set_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