20 lines
358 B
C
20 lines
358 B
C
#include "bitmap.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#define XSIZE 2560 // Size of before image
|
|
#define YSIZE 2048
|
|
|
|
int main(void) {
|
|
uchar *image = calloc(XSIZE * YSIZE * 3, 1); // Three uchars per pixel (RGB)
|
|
readbmp("before.bmp", image);
|
|
|
|
// Alter the image here
|
|
;
|
|
|
|
savebmp("after.bmp", image, XSIZE, YSIZE);
|
|
|
|
free(image);
|
|
return 0;
|
|
}
|