p2png.h
上传用户:looem2003
上传日期:2014-07-20
资源大小:13733k
文件大小:1k
- #include <windows.h>
- #include "pngpng.h"
- typedef png_color PALETTE;
- typedef struct tagIMAGE {
- long width;
- long height;
- unsigned int pixdepth;
- unsigned int palnum;
- BOOL topdown;
- BOOL alpha;
- unsigned long rowbytes;
- unsigned long imgbytes;
- PALETTE *palette;
- BYTE **rowptr;
- BYTE *bmpbits;
- png_color_8 sigbit;
- } IMAGE;
- void png_my_error(png_structp, png_const_charp);
- void png_my_warning(png_structp, png_const_charp);
- BOOL imgbuf_alloc(IMAGE *);
- void imgbuf_free(IMAGE *);
- void imgbuf_init(IMAGE *);
- void start_toPNG(char *NameBmp, char *NamePng);