awtk/tools/image_dither/image_dither.h

37 lines
957 B
C
Raw Normal View History

2020-05-27 08:36:42 +08:00
/**
2020-05-31 20:17:29 +08:00
* File: image_dither.h
2020-05-27 08:36:42 +08:00
* Author: AWTK Develop Team
* Brief: bitmap image generator
*
2024-03-27 11:36:42 +08:00
* Copyright (c) 2018 - 2024 Guangzhou ZHIYUAN Electronics Co.,Ltd.
2020-05-27 08:36:42 +08:00
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* License file for more details.
*
*/
/**
* History:
* ================================================================
2020-05-31 20:17:29 +08:00
* 2020-05-26 Luo ZhiMing <luozhiming@zlg.cn> created
2020-05-27 08:36:42 +08:00
*
*/
#ifndef IMAGE_DITHER_H
#define IMAGE_DITHER_H
2020-05-27 08:36:42 +08:00
#include "widgets/image.h"
BEGIN_C_DECLS
2020-06-05 17:16:19 +08:00
ret_t image_dither_load_image(const uint8_t* buff, uint32_t buff_size, bitmap_t* image,
2022-07-22 17:45:41 +08:00
bitmap_format_t bitmap_format, lcd_orientation_t o, color_t bg_color);
2020-05-27 08:36:42 +08:00
ret_t image_dither_image_wirte_png_file(const char* output_file, bitmap_t* image);
END_C_DECLS
#endif /*IMAGE_DITHER_H*/