From 567e0df2434b270411d3356b8e362fc881113335 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 29 Aug 2020 14:05:22 +0200 Subject: first working --- src/bitmap.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/bitmap.h') 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 * License: MIT */ @@ -12,6 +11,8 @@ #include #include +#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_ */ -- cgit v1.2.3