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

PLFilterCrop Class Reference

Filter that cuts part of the image off. More...

#include <plfiltercrop.h>

Inheritance diagram for PLFilterCrop:

Inheritance graph
[legend]
Collaboration diagram for PLFilterCrop:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLFilterCrop (int XMin, int YMin, int XMax, int YMax)
virtual ~PLFilterCrop ()
virtual void Apply (PLBmp *pBmpSource, PLBmp *pBmpDest) const
 Applies the Filter to pBmpSource and stores the result in pBmpDest.

Private Attributes

int m_XMin
int m_XMax
int m_YMin
int m_YMax

Detailed Description

Filter that cuts part of the image off.

XMin and YMin are included in the rectangle, XMax and YMax aren't.

Definition at line 24 of file plfiltercrop.h.


Constructor & Destructor Documentation

PLFilterCrop::PLFilterCrop int  XMin,
int  YMin,
int  XMax,
int  YMax
 

Definition at line 16 of file plfiltercrop.cpp.

PLFilterCrop::~PLFilterCrop  )  [virtual]
 

Definition at line 25 of file plfiltercrop.cpp.


Member Function Documentation

void PLFilterCrop::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 30 of file plfiltercrop.cpp.

References PLBmp::Create(), PLBmp::GetBitsPerPixel(), PLBmp::GetLineArray(), PLBmp::GetPalette(), PLBmp::GetResolution(), PLBmp::HasAlpha(), m_XMax, m_XMin, m_YMax, m_YMin, PLASSERT, PLBYTE, and PLBmp::SetPalette().

Here is the call graph for this function:


Member Data Documentation

int PLFilterCrop::m_XMax [private]
 

Definition at line 39 of file plfiltercrop.h.

Referenced by Apply().

int PLFilterCrop::m_XMin [private]
 

Definition at line 38 of file plfiltercrop.h.

Referenced by Apply().

int PLFilterCrop::m_YMax [private]
 

Definition at line 41 of file plfiltercrop.h.

Referenced by Apply().

int PLFilterCrop::m_YMin [private]
 

Definition at line 40 of file plfiltercrop.h.

Referenced by Apply().


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