### Struct

# AppStreamCompose ImageSource

since: 1.2.0

#### Description [src]

    struct AscImageSource {
      /* No available fields */
    }

Describes the image a media operation should read, and how it should be loaded. After the operation has run, it also carries the dimensions the source image was loaded at.

Available since: 1.2.0

#### Constructors

###### asc_image_source_new

Create a new `AscImageSource` for the given image data.

since: 1.2.0

#### Instance methods

###### asc_image_source_copy

Create a copy of an `AscImageSource`, including any result data it may already carry.

since: 1.2.0

###### asc_image_source_free

Free an `AscImageSource`. Bindings must not call this: they own the boxed value and release it themselves, so freeing it here would free it twice.

since: 1.2.0

###### asc_image_source_get_data

Get the raw image data this source was created for.

since: 1.2.0

###### asc_image_source_get_height

Get the height the source image was loaded at. Only valid after the media operation this source was passed to has completed successfully.

since: 1.2.0

###### asc_image_source_get_render_size

Get the size vector graphics are rendered at.

since: 1.2.0

###### asc_image_source_get_width

Get the width the source image was loaded at. Only valid after the media operation this source was passed to has completed successfully.

since: 1.2.0

###### asc_image_source_set_render_size

Set the size vector graphics should be rendered at. This has no effect on raster images, which are always loaded at their native size.

since: 1.2.0