Code:borders-black-on-white.c: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

7 August 2022

  • curprev 14:1014:10, 7 August 2022Elie talk contribs 1,584 bytes +171 No edit summary
  • curprev 04:1104:11, 7 August 2022Elie talk contribs 1,413 bytes +1,413 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);..."