pngwrite.h
00001 #ifndef __PNGWRITE_H__
00002 #define __PNGWRITE_H__
00003
00004 #include "png.h"
00005
00006
00007
00008 typedef struct SPPNGBD {
00009 const unsigned char *px;
00010 int rowstride;
00011 } SPPNGBD;
00012
00013 int sp_png_get_block_stripe(const unsigned char **rows,
00014 int row,
00015 int num_rows,
00016 void *data);
00017
00018 int sp_png_write_rgb_striped(const char *filename,
00019 int width,
00020 int height,
00021 double xdpi,
00022 double ydpi,
00023 int (* get_rows) (
00024 const unsigned char **rows,
00025 int row,
00026 int num_rows,
00027 void *data),
00028 void *data);
00029
00030 int sp_png_write_rgb(const char *filename,
00031 const unsigned char *px,
00032 int width,
00033 int height,
00034 double xdpi,
00035 double ydpi,
00036 int rowstride);
00037
00038 #endif