libsxbp  v0.27
Experimental generation of 2D spiralling lines based on input binary data.
backend_png.h
Go to the documentation of this file.
1 /*
2  * This source file forms part of libsxbp, a library which generates
3  * experimental 2D spiral-like shapes based on input binary data.
4  */
5 
27 #ifndef SAXBOPHONE_SAXBOSPIRAL_BACKEND_PNG_H
28 #define SAXBOPHONE_SAXBOSPIRAL_BACKEND_PNG_H
29 
30 #include <stdbool.h>
31 
32 #include "../saxbospiral.h"
33 #include "../render.h"
34 
35 
36 #ifdef __cplusplus
37 extern "C"{
38 #endif
39 
46 extern const bool SXBP_PNG_SUPPORT;
47 
62  sxbp_bitmap_t bitmap, sxbp_buffer_t* buffer
63 );
64 
65 #ifdef __cplusplus
66 } // extern "C"
67 #endif
68 
69 // end of header file
70 #endif
Used to represent a basic 1-bit, pure black/white bitmap image.
Definition: render.h:40
A simple buffer type for storing arrays of bytes.
Definition: saxbospiral.h:236
const bool SXBP_PNG_SUPPORT
Flag for whether PNG output support has been enabled.
Definition: backend_png.c:81
sxbp_status_t sxbp_render_backend_png(sxbp_bitmap_t bitmap, sxbp_buffer_t *buffer)
Renders a bitmap image to a PNG image.
Definition: backend_png.c:84
sxbp_status_t
Represents the success or failure status of an executed function.
Definition: saxbospiral.h:87