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

PLFilterIntensity Class Reference

#include <plfilterintensity.h>

Inheritance diagram for PLFilterIntensity:

PLFilter List of all members.

Public Member Functions

 PLFilterIntensity (double intensity, PLBYTE offset, double exponent)
virtual void Apply (PLBmp *pBmpSource, PLBmp *pBmpDest) const

Protected Attributes

double m_intensity
double m_offset
double m_exponent

Detailed Description

Changes the intensity of a 24 or 32 bpp bitmap. Applies the factor intensityFactor = 1.0 + csupp * pow((v-m_offset), m_exponent) with csupp = intensity/pow(255.0, m_exponent); on the v-Value of the image after a HSV transform. The bitmap stays unchanged for intensity = 20, offset = 128, exponent = 1.

Definition at line 28 of file plfilterintensity.h.


Member Function Documentation

virtual void PLFilterIntensity::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.


The documentation for this class was generated from the following file:
Generated on Sun Jun 6 13:42:23 2004 for paintlib by doxygen 1.3.2