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

PLFilterGrayscale Class Reference

Creates a grayscale version of a 32 bpp bitmap. More...

#include <plfiltergrayscale.h>

Inheritance diagram for PLFilterGrayscale:

Inheritance graph
[legend]
Collaboration diagram for PLFilterGrayscale:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Creates a grayscale version of a 32 bpp bitmap.

Definition at line 23 of file plfiltergrayscale.h.


Constructor & Destructor Documentation

PLFilterGrayscale::PLFilterGrayscale  ) 
 

Definition at line 20 of file plfiltergrayscale.cpp.

PLFilterGrayscale::~PLFilterGrayscale  )  [virtual]
 

Definition at line 24 of file plfiltergrayscale.cpp.


Member Function Documentation

void PLFilterGrayscale::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 29 of file plfiltergrayscale.cpp.

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

Here is the call graph for this function:


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