00001 /* 00002 /-------------------------------------------------------------------- 00003 | 00004 | $Id: plfilterlightness_8h-source.html,v 1.4 2004/09/15 15:26:29 uzadow Exp $ 00005 | 00006 | Copyright (c) 1996-2002 Ulrich von Zadow 00007 | 00008 \-------------------------------------------------------------------- 00009 */ 00010 00011 #if !defined(INCL_PLFILTERLIGHTNESS) 00012 #define INCL_PLFILTERLIGHTNESS 00013 00014 #if _MSC_VER > 1000 00015 #pragma once 00016 #endif // _MSC_VER > 1000 00017 00018 #include "plfilter.h" 00019 00020 class PLBmp; 00021 00022 //! Filter that changes the lightness of a 32 bpp bitmap. lightness 00023 //! values must be in the range -100..100. A value of 0 leaves the 00024 //! image unchanged. 00025 class PLFilterLightness : public PLFilter 00026 { 00027 public: 00028 //! 00029 PLFilterLightness (int lightness); 00030 00031 //! 00032 virtual ~PLFilterLightness(); 00033 00034 //! 00035 virtual void Apply(PLBmpBase *pBmpSource, PLBmp* pBmpDest) const; 00036 00037 protected: 00038 int m_lightness; 00039 }; 00040 #endif 00041 00042 /* 00043 /-------------------------------------------------------------------- 00044 | 00045 | $Log: plfilterlightness_8h-source.html,v $ 00045 | Revision 1.4 2004/09/15 15:26:29 uzadow 00045 | Linux compatibility changes, doc update. 00045 | 00046 | Revision 1.3 2004/06/15 10:26:13 uzadow 00047 | Initial nonfunctioning version of plbmpbase. 00048 | 00049 | Revision 1.2 2002/02/24 13:00:47 uzadow 00050 | Documentation update; removed buggy PLFilterRotate. 00051 | 00052 | Revision 1.1 2001/09/16 19:03:23 uzadow 00053 | Added global name prefix PL, changed most filenames. 00054 | 00055 | Revision 1.5 2001/02/04 14:31:52 uzadow 00056 | Member initialization list cleanup (Erik Hoffmann). 00057 | 00058 | Revision 1.4 2001/01/15 15:05:31 uzadow 00059 | Added PLBmp::ApplyFilter() and PLBmp::CreateFilteredCopy() 00060 | 00061 | Revision 1.3 2001/01/12 23:29:38 uzadow 00062 | Lightness 0 now means "don't change anything". 00063 | 00064 | Revision 1.2 2000/12/04 23:57:13 uzadow 00065 | Cleaned up code. 00066 | 00067 | 00068 | 00069 \-------------------------------------------------------------------- 00070 */