Page history
7 August 2022
Elie
no edit summary
+171
Elie
Created page with "<syntaxhighlight lang="c"> #define WIDTH 8640 #define HEIGHT 4320 #define IN_FILE "data/countries.data-int16-8640x4320" #define OUT_FILE "data/borders-black-on-white.png" #include <stdio.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" int main() { short *in = malloc(WIDTH*HEIGHT*sizeof(short)); unsigned char *out = malloc(WIDTH*HEIGHT*sizeof(unsigned char)); if (!in || !out) { printf("Not enough memory\n"); free(in); free(out);..."
+1,413