From 3113ade53d0dd889058c7838bb19c0fa0492b410 Mon Sep 17 00:00:00 2001 From: jvech Date: Sun, 18 Jun 2023 15:03:25 -0500 Subject: init: ppm library utilities implemented It is not completed at all but it works well --- src/main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main.c (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..242e464 --- /dev/null +++ b/src/main.c @@ -0,0 +1,16 @@ +#include +#include + +#include "ppm.h" + +int main(int argc, char *argv[]) +{ + Image img; + ppm_read("images/boxes_1.ppm", &img); + + printf("width: %d\n", img.width); + printf("height: %d\n", img.height); + printf("bits: %d\n", img.pixel_bits); + printf("data[2]: %d\n", img.data[2]); + return 0; +} -- cgit v1.2.3-70-g09d2