Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PLFilterLightness Class Reference

Filter that changes the lightness of a 32 bpp bitmap. More...

#include <plfilterlightness.h>

Inheritance diagram for PLFilterLightness:

Inheritance graph
[legend]
Collaboration diagram for PLFilterLightness:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLFilterLightness (int lightness)
virtual ~PLFilterLightness ()
virtual void Apply (PLBmp *pBmpSource, PLBmp *pBmpDest) const
 Applies the Filter to pBmpSource and stores the result in pBmpDest.

Protected Attributes

int m_lightness

Detailed Description

Filter that changes the lightness of a 32 bpp bitmap.

lightness values must be in the range -100..100. A value of 0 leaves the image unchanged.

Definition at line 25 of file plfilterlightness.h.


Constructor & Destructor Documentation

PLFilterLightness::PLFilterLightness int  lightness  ) 
 

Definition at line 15 of file plfilterlightness.cpp.

PLFilterLightness::~PLFilterLightness  )  [virtual]
 

Definition at line 21 of file plfilterlightness.cpp.


Member Function Documentation

void PLFilterLightness::Apply PLBmp pBmpSource,
PLBmp pBmpDest
const [virtual]
 

Applies the Filter to pBmpSource and stores the result in pBmpDest.

The base-class version copies the bitmap before calling ApplyInPlace (pBmpDest).

Reimplemented from PLFilter.

Definition at line 26 of file plfilterlightness.cpp.

References PLBmp::Create(), PLBmp::GetBitsPerPixel(), PLBmp::GetHeight(), PLBmp::GetLineArray(), PLBmp::GetResolution(), PLBmp::GetWidth(), PLBmp::HasAlpha(), PLASSERT, and PLBYTE.

Here is the call graph for this function:


Member Data Documentation

int PLFilterLightness::m_lightness [protected]
 

Definition at line 38 of file plfilterlightness.h.


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:00 2004 for vuVolume by  doxygen 1.3.9.1