This repository has been archived on 2022-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
HPC/Project2/Project2-code/mandel/pngwriter.h

19 lines
373 B
C
Raw Normal View History

2022-10-18 12:39:50 +00:00
#ifndef PNGWRITER_H_
#define PNGWRITER_H_
#include <png.h>
#define PNGWRITER_DEFAULT_COMPRESSION 6
typedef struct {
png_bytepp pPixels;
int nWidth;
int nHeight;
} png_data;
png_data *png_create(int nWidth, int nHeight);
void png_plot(png_data *pData, int x, int y, int r, int g, int b);
void png_write(png_data *pData, char *szFileName);
#endif /*PNGWRITER_H_*/