… | |
… | |
23 | #include <string.h> |
23 | #include <string.h> |
24 | #include "psiconv.h" |
24 | #include "psiconv.h" |
25 | |
25 | |
26 | #if IMAGEMAGICK |
26 | #if IMAGEMAGICK |
27 | #include <magick/magick.h> |
27 | #include <magick/magick.h> |
28 | #endif |
|
|
29 | |
28 | |
30 | /* This is ridiculously simple using ImageMagick. Without it, it would |
29 | /* This is ridiculously simple using ImageMagick. Without it, it would |
31 | be quite somewhat harder - it will be left for later on */ |
30 | be quite somewhat harder - it will be left for later on */ |
32 | |
31 | |
33 | static Image *get_paint_data_section(psiconv_paint_data_section sec) |
32 | static Image *get_paint_data_section(psiconv_paint_data_section sec) |
… | |
… | |
36 | image = CreateImage(sec->xsize,sec->ysize,sec->red,sec->green, |
35 | image = CreateImage(sec->xsize,sec->ysize,sec->red,sec->green, |
37 | sec->blue,NULL); |
36 | sec->blue,NULL); |
38 | return image; |
37 | return image; |
39 | } |
38 | } |
40 | |
39 | |
|
|
40 | #endif |
41 | |
41 | |
42 | static int psiconv_gen_image_clipart(FILE *of, psiconv_clipart_f f, |
42 | static int psiconv_gen_image_clipart(FILE *of, psiconv_clipart_f f, |
43 | const char *dest) |
43 | const char *dest) |
44 | { |
44 | { |
45 | #if IMAGEMAGICK |
45 | #if IMAGEMAGICK |