diff options
author | Marius Kintel <marius@kintel.net> | 2013-03-06 18:08:31 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-03-06 18:08:31 (GMT) |
commit | cfc67f928fc86310614940f126d9f6c76d4e9ea7 (patch) | |
tree | 162be7579d3acd0eeb5b7b509ef9a0b428d6831f /src/imageutils.h | |
parent | fe44758f5096be0e98c82d2cb0d54bdeffc4403a (diff) | |
parent | 974abf13049d5e73227418e3990af8a9bbf9db09 (diff) |
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'src/imageutils.h')
-rw-r--r-- | src/imageutils.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/imageutils.h b/src/imageutils.h new file mode 100644 index 0000000..c9bb8de --- /dev/null +++ b/src/imageutils.h @@ -0,0 +1,11 @@ +#ifndef IMAGEUTILS_H_ +#define IMAGEUTILS_H_ + +#include <stdlib.h> +#include <iostream> + +bool write_png(const char *filename, unsigned char *pixels, int width, int height); +bool write_png(std::ostream &output, unsigned char *pixels, int width, int height); +void flip_image(const unsigned char *src, unsigned char *dst, size_t pixelsize, size_t width, size_t height); + +#endif |