version 0.0.1
[fms.git] / include / freenet / captcha / easybmp / EasyBMP.h
1 /*************************************************
2 *                                                *
3 *  EasyBMP Cross-Platform Windows Bitmap Library * 
4 *                                                *
5 *  Author: Paul Macklin                          *
6 *   email: macklin01@users.sourceforge.net       *
7 * support: http://easybmp.sourceforge.net        *
8 *                                                *
9 *          file: EasyBMP.h                       * 
10 *    date added: 01-31-2005                      *
11 * date modified: 12-01-2006                      *
12 *       version: 1.06                            *
13 *                                                *
14 *   License: BSD (revised/modified)              *
15 * Copyright: 2005-6 by the EasyBMP Project       * 
16 *                                                *
17 * description: Main include file                 *
18 *                                                *
19 *************************************************/
20
21 #ifdef _MSC_VER 
22 // MS Visual Studio gives warnings when using 
23 // fopen. But fopen_s is not going to work well 
24 // with most compilers, and fopen_s uses different 
25 // syntax than fopen. (i.e., a macro won't work) 
26 // So, we'lll use this:
27 #define _CRT_SECURE_NO_DEPRECATE
28 #endif
29
30 #include <iostream>
31 #include <cmath>
32 #include <cctype>
33 #include <cstring>
34
35 #ifndef EasyBMP
36 #define EasyBMP
37
38 #ifdef __BCPLUSPLUS__ 
39 // The Borland compiler must use this because something
40 // is wrong with their cstdio file. 
41 #include <stdio.h>
42 #else 
43 #include <cstdio>
44 #endif
45
46 #ifdef __GNUC__
47 // If g++ specific code is ever required, this is 
48 // where it goes. 
49 #endif
50
51 #ifdef __INTEL_COMPILER
52 // If Intel specific code is ever required, this is 
53 // where it goes. 
54 #endif
55
56 #ifndef _DefaultXPelsPerMeter_
57 #define _DefaultXPelsPerMeter_
58 #define DefaultXPelsPerMeter 3780
59 // set to a default of 96 dpi 
60 #endif
61
62 #ifndef _DefaultYPelsPerMeter_
63 #define _DefaultYPelsPerMeter_
64 #define DefaultYPelsPerMeter 3780
65 // set to a default of 96 dpi
66 #endif
67
68 #include "EasyBMP_DataStructures.h"
69 #include "EasyBMP_BMP.h"
70 #include "EasyBMP_VariousBMPutilities.h"
71
72 #ifndef _EasyBMP_Version_
73 #define _EasyBMP_Version_ 1.06
74 #define _EasyBMP_Version_Integer_ 106
75 #define _EasyBMP_Version_String_ "1.06"
76 #endif
77
78 #ifndef _EasyBMPwarnings_
79 #define _EasyBMPwarnings_
80 #endif
81
82 void SetEasyBMPwarningsOff( void );
83 void SetEasyBMPwarningsOn( void );
84 bool GetEasyBMPwarningState( void );
85
86 #endif