Method

AppStreamComposeImagesave_filename

Declaration [src]

gboolean
asc_image_save_filename (
  AscImage* image,
  const gchar* filename,
  guint width,
  guint height,
  AscImageSaveFlags flags,
  GError** error
)

Description [src]

Saves the image to a file.

Parameters

filename const gchar*
 

Filename to write to.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
width guint
 

Target width, or 0 for default.

height guint
 

Target height, or 0 for default.

flags AscImageSaveFlags
 

Some AscImageSaveFlags values, e.g. ASC_IMAGE_SAVE_FLAG_PAD_16_9

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success.