Commit 2c49241a authored by claes's avatar claes

Function to save image (used for pdf)

parent 5210d014
......@@ -34,3 +34,13 @@ void cnv_free_image( ImlibImage *image, Pixmap pixmap)
Imlib_destroy_image( imlib, image);
}
void cnv_print_image( ImlibImage *image, char *filename)
{
Imlib_save_image( imlib, image, filename, 0);
}
......@@ -32,5 +32,6 @@ typedef void *ImlibImage;
int cnv_get_image( char *fname, ImlibImage **image, Pixmap *pixmap);
void cnv_free_image( ImlibImage *image, Pixmap pixmap);
void cnv_print_image( ImlibImage *image, char *filename);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment