00001 /* 00002 /-------------------------------------------------------------------- 00003 | 00004 | $Id: plfilter.cpp,v 1.1 2004/05/21 21:02:53 maxx Exp $ 00005 | 00006 | Copyright (c) 1996-1998 Ulrich von Zadow 00007 | 00008 \-------------------------------------------------------------------- 00009 */ 00010 00011 #include "plstdpch.h" 00012 #include "plfilter.h" 00013 #include "plbitmap.h" 00014 #include "planybmp.h" 00015 00016 00017 PLFilter::PLFilter() : PLObject() 00018 { 00019 00020 } 00021 00022 PLFilter::~PLFilter() 00023 { 00024 00025 } 00026 00027 void PLFilter::ApplyInPlace(PLBmp * pBmp) const 00028 { 00029 // Use a bitmap class that's guaranteed to work on all platforms as 00030 // temporary storage. 00031 PLAnyBmp TempBmp; 00032 Apply (pBmp, &TempBmp); 00033 *pBmp = TempBmp; 00034 } 00035 00036 void PLFilter::Apply(PLBmp * pBmpSource, PLBmp * pBmpDest) const 00037 { 00038 *pBmpDest = *pBmpSource; 00039 ApplyInPlace (pBmpDest); 00040 } 00041 00042 /* 00043 /-------------------------------------------------------------------- 00044 | 00045 | $Log: plfilter.cpp,v $ 00046 | Revision 1.1 2004/05/21 21:02:53 maxx 00047 | Initial Version of vuVolume, moderatly changed to make it compile on my windows and linux machine. 00048 | 00049 | Revision 1.1 2002/11/13 01:59:47 mspindle 00050 | *** empty log message *** 00051 | 00052 | Revision 1.1 2001/09/16 19:03:23 uzadow 00053 | Added global name prefix PL, changed most filenames. 00054 | 00055 | Revision 1.9 2001/02/04 14:31:52 uzadow 00056 | Member initialization list cleanup (Erik Hoffmann). 00057 | 00058 | Revision 1.8 2001/01/15 15:05:31 uzadow 00059 | Added PLBmp::ApplyFilter() and PLBmp::CreateFilteredCopy() 00060 | 00061 | Revision 1.7 2000/01/16 20:43:15 anonymous 00062 | Removed MFC dependencies 00063 | 00064 | Revision 1.6 1999/12/14 12:29:47 Ulrich von Zadow 00065 | no message 00066 | 00067 | Revision 1.5 1999/12/10 01:27:27 Ulrich von Zadow 00068 | Added assignment operator and copy constructor to 00069 | bitmap classes. 00070 | 00071 | Revision 1.4 1999/12/08 16:31:40 Ulrich von Zadow 00072 | Unix compatibility 00073 | 00074 | Revision 1.3 1999/11/27 18:45:48 Ulrich von Zadow 00075 | Added/Updated doc comments. 00076 | 00077 | Revision 1.2 1999/10/21 18:48:03 Ulrich von Zadow 00078 | no message 00079 | 00080 | Revision 1.1 1999/10/21 16:05:17 Ulrich von Zadow 00081 | Moved filters to separate directory. Added Crop, Grayscale and 00082 | GetAlpha filters. 00083 | 00084 | Revision 1.1 1999/10/19 21:29:44 Ulrich von Zadow 00085 | Added filters. 00086 | 00087 | 00088 \-------------------------------------------------------------------- 00089 */