Enumeration

AppStreamComposeImageFormat

since: 1.0

Declaration

enum AppStreamCompose.ImageFormat

Description [src]

File format of an image.

Available since: 1.0

Members

ASC_IMAGE_FORMAT_UNKNOWN

Unknown image format.

  • Value: 0
  • Nickname: unknown
  • Available since: 1.0
ASC_IMAGE_FORMAT_PNG

PNG format.

  • Value: 1
  • Nickname: png
  • Available since: 1.0
ASC_IMAGE_FORMAT_JPEG

JPEG format.

  • Value: 2
  • Nickname: jpeg
  • Available since: 1.0
ASC_IMAGE_FORMAT_GIF

GIF format.

  • Value: 3
  • Nickname: gif
  • Available since: 1.0
ASC_IMAGE_FORMAT_SVG

SVG format.

  • Value: 4
  • Nickname: svg
  • Available since: 1.0
ASC_IMAGE_FORMAT_SVGZ

Compressed SVG format.

  • Value: 5
  • Nickname: svgz
  • Available since: 1.0
ASC_IMAGE_FORMAT_WEBP

WebP format.

  • Value: 6
  • Nickname: webp
  • Available since: 1.0
ASC_IMAGE_FORMAT_AVIF

AVIF format.

  • Value: 7
  • Nickname: avif
  • Available since: 1.0
ASC_IMAGE_FORMAT_XPM

XPM format.

  • Value: 8
  • Nickname: xpm
  • Available since: 1.0

Type functions

asc_image_format_from_filename

Returns the image format type based on the given file’s filename.

since: 1.0

asc_image_format_from_string

Converts the text representation to an enumerated value.

since: 1.0

asc_image_format_to_string

Converts the enumerated value to an text representation.

since: 1.0