| Top |  |  |  |  | 
| GQuark | asc_image_error_quark () | 
| const gchar * | asc_image_format_to_string () | 
| AscImageFormat | asc_image_format_from_string () | 
| AscImageFormat | asc_image_format_from_filename () | 
| gboolean | asc_optimize_png () | 
| GHashTable * | asc_image_supported_format_names () | 
| AscImage * | asc_image_new () | 
| AscImage * | asc_image_new_from_file () | 
| AscImage * | asc_image_new_from_data () | 
| gboolean | asc_image_load_filename () | 
| GdkPixbuf * | asc_image_save_pixbuf () | 
| gboolean | asc_image_save_filename () | 
| GdkPixbuf * | asc_image_get_pixbuf () | 
| void | asc_image_set_pixbuf () | 
| guint | asc_image_get_width () | 
| guint | asc_image_get_height () | 
| void | asc_image_scale () | 
| void | asc_image_scale_to_width () | 
| void | asc_image_scale_to_height () | 
| void | asc_image_scale_to_fit () | 
| void | asc_pixbuf_blur () | 
| void | asc_pixbuf_sharpen () | 
| #define | ASC_TYPE_IMAGE | 
| enum | AscImageSaveFlags | 
| enum | AscImageLoadFlags | 
| enum | AscImageFormat | 
| enum | AscImageError | 
| #define | ASC_IMAGE_ERROR | 
| AscImage | 
const gchar *
asc_image_format_to_string (AscImageFormat format);
Converts the enumerated value to an text representation.
AscImageFormat
asc_image_format_from_string (const gchar *str);
Converts the text representation to an enumerated value.
AscImageFormat
asc_image_format_from_filename (const gchar *fname);
Returns the image format type based on the given file's filename.
gboolean asc_optimize_png (const gchar *fname,GError **error);
Optimizes a PNG graphic for size with optipng, if its binary is available and this feature is enabled.
GHashTable *
asc_image_supported_format_names (void);
Get a set of image format names we can currently read (via GdkPixbuf).
AscImage * asc_image_new_from_file (const gchar *fname,guint dest_size,AscImageLoadFlags flags,GError **error);
Creates a new AscImage from a file on the filesystem.
AscImage * asc_image_new_from_data (const void *data,gssize len,guint dest_size,gboolean compressed,AscImageLoadFlags flags,GError **error);
Creates a new AscImage from data in memory.
gboolean asc_image_load_filename (AscImage *image,const gchar *filename,guint dest_size,guint src_size_min,AscImageLoadFlags flags,GError **error);
Reads an image from a file.
| image | a AscImage instance. | |
| filename | filename to read from | |
| dest_size | The size of the constructed pixbuf, or 0 for the native size | |
| src_size_min | The smallest source size allowed, or 0 for none | |
| flags | ||
| error | A GError or  | 
GdkPixbuf * asc_image_save_pixbuf (AscImage *image,guint width,guint height,AscImageSaveFlags flags);
Resamples a pixbuf to a specific size.
| image | a AscImage instance. | |
| width | target width, or 0 for default | |
| height | target height, or 0 for default | |
| flags | some AscImageSaveFlags values, e.g.  | 
gboolean asc_image_save_filename (AscImage *image,const gchar *filename,guint width,guint height,AscImageSaveFlags flags,GError **error);
Saves the image to a file.
| image | a AscImage instance. | |
| filename | filename to write to | |
| width | target width, or 0 for default | |
| height | target height, or 0 for default | |
| flags | some AscImageSaveFlags values, e.g.  | |
| error | A GError or  | 
GdkPixbuf *
asc_image_get_pixbuf (AscImage *image);
Gets the image pixbuf if set.
void asc_image_set_pixbuf (AscImage *image,GdkPixbuf *pixbuf);
Sets the image pixbuf.
void asc_image_scale (AscImage *image,guint new_width,guint new_height);
Scale the image to the given size.
void asc_image_scale_to_width (AscImage *image,guint new_width);
Scale the image to the given width, preserving its aspect ratio.
void asc_image_scale_to_height (AscImage *image,guint new_height);
Scale the image to the given height, preserving its aspect ratio.
void asc_image_scale_to_fit (AscImage *image,guint size);
Scale the image to fir in a square with the given edge length, and keep its aspect ratio.
File format of an image.