1 /*************************************************
3 * EasyBMP Cross-Platform Windows Bitmap Library *
5 * Author: Paul Macklin *
6 * email: macklin01@users.sourceforge.net *
7 * support: http://easybmp.sourceforge.net *
9 * file: EasyBMP_VariousBMPutilities.h *
10 * date added: 05-02-2005 *
11 * date modified: 12-01-2006 *
14 * License: BSD (revised/modified) *
15 * Copyright: 2005-6 by the EasyBMP Project *
17 * description: Various utilities. *
19 *************************************************/
21 #ifndef _EasyBMP_VariousBMPutilities_h_
22 #define _EasyBMP_VariousBMPutilities_h_
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 );
41 bool Rescale( BMP& InputImage , char mode, int NewDimension );