00001 // Filename: imageFixHiddenColor.h 00002 // Created by: drose (13Mar03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef IMAGEFIXHIDDENCOLOR_H 00016 #define IMAGEFIXHIDDENCOLOR_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "imageFilter.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : ImageFixHiddenColor 00024 // Description : This program repairs an image's RGB values hidden 00025 // behind an A value of 0. 00026 //////////////////////////////////////////////////////////////////// 00027 class ImageFixHiddenColor : public ImageFilter { 00028 public: 00029 ImageFixHiddenColor(); 00030 00031 void run(); 00032 00033 private: 00034 Filename _alpha_filename; 00035 double _min_opaque_alpha; 00036 double _max_transparent_alpha; 00037 }; 00038 00039 #include "imageFixHiddenColor.I" 00040 00041 #endif 00042