openscad/src/imageutils.h

12 lines
372 B
C
Raw Normal View History

2013-01-24 07:02:31 +04:00
#ifndef IMAGEUTILS_H_
#define IMAGEUTILS_H_
#include <stdlib.h>
#include <iostream>
2013-01-24 07:02:31 +04:00
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);
2013-01-24 07:02:31 +04:00
void flip_image(const unsigned char *src, unsigned char *dst, size_t pixelsize, size_t width, size_t height);
#endif