version 0.0.1
[fms.git] / include / freenet / captcha / easybmp / EasyBMP_VariousBMPutilities.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_VariousBMPutilities.h   *
10 *    date added: 05-02-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: Various utilities.                *
18 *                                                *
19 *************************************************/
20
21 #ifndef _EasyBMP_VariousBMPutilities_h_
22 #define _EasyBMP_VariousBMPutilities_h_
23
24 BMFH GetBMFH( const char* szFileNameIn );
25 BMIH GetBMIH( const char* szFileNameIn );
26 void DisplayBitmapInfo( const char* szFileNameIn );
27 int GetBitmapColorDepth( const char* szFileNameIn );
28 void PixelToPixelCopy( BMP& From, int FromX, int FromY,  
29                        BMP& To, int ToX, int ToY);
30 void PixelToPixelCopyTransparent( BMP& From, int FromX, int FromY,  
31                                   BMP& To, int ToX, int ToY,
32                                   RGBApixel& Transparent );
33 void RangedPixelToPixelCopy( BMP& From, int FromL , int FromR, int FromB, int FromT, 
34                              BMP& To, int ToX, int ToY );
35 void RangedPixelToPixelCopyTransparent( 
36      BMP& From, int FromL , int FromR, int FromB, int FromT, 
37      BMP& To, int ToX, int ToY ,
38      RGBApixel& Transparent );
39 bool CreateGrayscaleColorTable( BMP& InputImage );
40
41 bool Rescale( BMP& InputImage , char mode, int NewDimension );
42
43 #endif