You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
300 B

11 years ago
#include <gd.h>
#include "main.h"
#include "bitmap.h"
11 years ago
#include "image.h"
11 years ago
int main(int argc, char **argv)
{
image_t *img = NULL;
const char *err = NULL;
11 years ago
img = image_from_file("test.png", &err);
if (img == NULL) {
printf("%s\n", err);
exit(EXIT_FAILURE);
}
exit(EXIT_SUCCESS);
}