bmpf.h
上传用户:looem2003
上传日期:2014-07-20
资源大小:13733k
文件大小:1k
- /*
Copyright (C) 2007 Ibadov Tariel <itk@bk.ru>
*/
- #include <fstream.h>
- #include <iostream.h>
- #include "../tiff/tif_config.h.in"
- #include <getopt.h>
- #include <fcntl.h>
- #include <windows.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <string>
- #include <ctype.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #ifdef HAVE_UNISTD_H
- # include <unistd.h>
- #endif
- #if HAVE_FCNTL_H
- # include <fcntl.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- #if HAVE_IO_H
- # include <io.h>
- #endif
- #include "../tiff/tiffio.h"
- #ifndef O_BINARY
- # define O_BINARY 0
- #endif
- struct BMPINFO
- {
- unsigned char *bits;
- int width;
- int height;
- int colours;
- unsigned char *palette;
- };
- int bmp_save( char *filename, BMPINFO *pbmpinfo );
- int pdf_save( char *filename, BMPINFO *pbmpinfo );
- int start_toTiff(char *NameBmp, char *NameTiff, uint16 _compression = COMPRESSION_LZW);