Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

plfilterlightness.h

00001 /*
00002 /--------------------------------------------------------------------
00003 |
00004 |      $Id: plfilterlightness.h,v 1.2 2002/02/24 13:00:47 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(PLBmp *pBmpSource, PLBmp* pBmpDest) const;
00036 
00037 protected:
00038     int m_lightness;
00039 };
00040 #endif
00041 
00042 /*
00043 /--------------------------------------------------------------------
00044 |
00045 |      $Log: plfilterlightness.h,v $
00046 |      Revision 1.2  2002/02/24 13:00:47  uzadow
00047 |      Documentation update; removed buggy PLFilterRotate.
00048 |
00049 |      Revision 1.1  2001/09/16 19:03:23  uzadow
00050 |      Added global name prefix PL, changed most filenames.
00051 |
00052 |      Revision 1.5  2001/02/04 14:31:52  uzadow
00053 |      Member initialization list cleanup (Erik Hoffmann).
00054 |
00055 |      Revision 1.4  2001/01/15 15:05:31  uzadow
00056 |      Added PLBmp::ApplyFilter() and PLBmp::CreateFilteredCopy()
00057 |
00058 |      Revision 1.3  2001/01/12 23:29:38  uzadow
00059 |      Lightness 0 now means "don't change anything".
00060 |
00061 |      Revision 1.2  2000/12/04 23:57:13  uzadow
00062 |      Cleaned up code.
00063 |
00064 |
00065 |
00066 \--------------------------------------------------------------------
00067 */

Generated on Sun Jun 6 13:42:22 2004 for paintlib by doxygen 1.3.2