diff options
| author | foswret | 2026-05-12 19:02:50 -0500 |
|---|---|---|
| committer | foswret | 2026-05-12 19:02:50 -0500 |
| commit | 428216caffe8e04b1959b7171ad2de9ebb540c50 (patch) | |
| tree | 53779af9d004b46314c69ec8d4e428e252e9af20 /src/image.h | |
| parent | 820a647eb2ad5e1b424acd72a4cf7362cfda2e8a (diff) | |
switch from pkg-config to pkgconf, pull in MagickWand library, move image-related functions to image.h, create resize_image(), get_image_width() and get_image_height
Diffstat (limited to 'src/image.h')
| -rw-r--r-- | src/image.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/image.h b/src/image.h new file mode 100644 index 0000000..117efaa --- /dev/null +++ b/src/image.h @@ -0,0 +1,13 @@ +int draw_image(cairo_t *c, char *path, double x, double y); + +int draw_month_art(cairo_t *c, struct dimensions *d, char *path); + +int resize_image(char *path, double width, double height, bool create_new); + +int crop_image(char *path, double width, double height, double x, double y, bool create_new); + +unsigned long get_image_width(char *path); + +unsigned long get_image_height(char *path); + +int prepare_month_art(char *path, struct dimensions *d); |
