### Struct

# Gdk TextureDownloader

since: 4.10

#### Description [src]

    struct GdkTextureDownloader {
      /* No available fields */
    }

Used to download the contents of a `GdkTexture`.

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.

`GdkTextureDownloader` can be used to convert data between different formats. Create a `GdkTexture` for the existing format and then download it in a different format.

Available since: 4.10

#### Constructors

###### gdk_texture_downloader_new

Creates a new texture downloader for `texture`.

since: 4.10

#### Instance methods

###### gdk_texture_downloader_copy

Creates a copy of the downloader.

since: 4.10

###### gdk_texture_downloader_download_bytes

Downloads the given texture pixels into a `GBytes`. The rowstride will be stored in the stride value.

since: 4.10

###### gdk_texture_downloader_download_bytes_with_planes

Downloads the given texture pixels into a `GBytes`. The offsets and strides of the resulting buffer will be stored in the respective values.

since: 4.20

###### gdk_texture_downloader_download_into

Downloads the `texture` into local memory.

since: 4.10

###### gdk_texture_downloader_free

Frees the given downloader and all its associated resources.

since: 4.10

###### gdk_texture_downloader_get_color_state

Gets the color state that the data will be downloaded in.

since: 4.16

###### gdk_texture_downloader_get_format

Gets the format that the data will be downloaded in.

since: 4.10

###### gdk_texture_downloader_get_texture

Gets the texture that the downloader will download.

since: 4.10

###### gdk_texture_downloader_set_color_state

Sets the color state the downloader will convert the data to.

since: 4.16

###### gdk_texture_downloader_set_format

Sets the format the downloader will download.

since: 4.10

###### gdk_texture_downloader_set_texture

Changes the texture the downloader will download.

since: 4.10