#include <plfiltercontrast.h>
Inheritance diagram for PLFilterContrast:
Public Member Functions | |
PLFilterContrast (double contrast, PLBYTE offset) | |
virtual void | Apply (PLBmp *pBmpSource, PLBmp *pBmpDest) const |
Protected Attributes | |
double | m_contrast |
double | m_offset |
Definition at line 33 of file plfiltercontrast.h.
|
contrast is the slope of the function. offset is the intensity at which the color stays the same. Above this value, intensities are increased. Below it, they are reduced. With offset 128 and contrast 1, the image stays unchanged. |
|
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. |