Code:borders-black-on-white.c: Difference between revisions

no edit summary
(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);...")
 
No edit summary
 
Line 1: Line 1:
Generates the image [[:File:borders-black-on-white.png|borders-black-on-white.png]] from raw data [[:File:countries.data-int16-8640x4320|countries.data-int16-8640x4320]]
<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
#define WIDTH 8640
#define WIDTH 8640