### Enumeration

# AppStreamCompose ImageScaleMode

since: 1.2.0

#### Declaration

    enum AppStreamCompose.ImageScaleMode

#### Description [src]

How an image rendition should be scaled. Every mode preserves the aspect ratio of the source image - an image is never stretched or cropped to fill a target size.

Available since: 1.2.0

#### Members

`ASC_IMAGE_SCALE_MODE_NONE`

  Keep the original (loaded) image size.

  - Value: `0`
  - Available since: 1.2.0
`ASC_IMAGE_SCALE_MODE_PAD`

  Scale to fit the target dimensions and center the result on a transparent canvas of exactly that size.

  - Value: `1`
  - Available since: 1.2.0
`ASC_IMAGE_SCALE_MODE_FIT_WIDTH`

  Scale proportionally to match the target width.

  - Value: `2`
  - Available since: 1.2.0
`ASC_IMAGE_SCALE_MODE_FIT_HEIGHT`

  Scale proportionally to match the target height.

  - Value: `3`
  - Available since: 1.2.0