aboutsummaryrefslogtreecommitdiff
path: root/src/bitmap.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-29 14:05:22 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-29 14:05:22 +0200
commit567e0df2434b270411d3356b8e362fc881113335 (patch)
tree843da4160e3001bdd9f792d52a21f31c485f5215 /src/bitmap.h
parent57b73d286ad68a71547cdfbb31c772fb46c96c67 (diff)
downloadAsciiMap-567e0df2434b270411d3356b8e362fc881113335.tar.gz
first working
Diffstat (limited to 'src/bitmap.h')
-rw-r--r--src/bitmap.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bitmap.h b/src/bitmap.h
index 3b942a7..48fd1ac 100644
--- a/src/bitmap.h
+++ b/src/bitmap.h
@@ -1,5 +1,4 @@
-/*
- * src/bitmap.h
+/* * src/bitmap.h
* (c) 2020 Jonas Gunz <himself@jonasgunz.de>
* License: MIT
*/
@@ -12,6 +11,8 @@
#include <stdlib.h>
#include <math.h>
+#include "dynalloc.h"
+
#define _HEADER_SIZE 54 //Fileheader + infoheader
#define IDENTIFIER 0x424d //BM BitMap identifier
@@ -65,6 +66,8 @@ struct bitmap_image
uint8_t **B;
uint8_t tags;
+ uint8_t monochrome_maximum_brightness;
+ uint8_t monochrome_minimum_brightness;
};
int bitmap_read ( char *_file, struct bitmap_image *_bitmap );
@@ -73,6 +76,8 @@ int bitmap_copy ( struct bitmap_image *_input, struct bitmap_image *_output );
int bitmap_convert_monochrome ( struct bitmap_image *_input, struct bitmap_image *_output );
-int bitmap_transform ( struct bitmap_image *_input, struct bitmap_image *_output );
+int bitmap_shrink ( struct bitmap_image *_input, struct bitmap_image *_output, unsigned int _factor_x, unsigned int _factor_y );
+
+int bitmap_fit_to_width ( struct bitmap_image *_input, struct bitmap_image *_output, unsigned int _width );
#endif /* end of include guard: _BITMAP_H_ */