File indexing completed on 2024-05-05 16:39:02

0001 /* This file is part of the KDE project
0002    Copyright (C) 1998,1999,2000,2001 Carsten Pfeiffer <pfeiffer@kde.org>
0003 
0004    This program is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU General Public
0006    License as published by the Free Software Foundation, version 2.
0007 
0008    This program is distributed in the hope that it will be useful,
0009    but WITHOUT ANY WARRANTY; without even the implied warranty of
0010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0011     General Public License for more details.
0012 
0013    You should have received a copy of the GNU General Public License
0014    along with this program; see the file COPYING.  If not, write to
0015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0016    Boston, MA 02110-1301, USA.
0017 */
0018 
0019 #ifndef IMBLIBCONFIG_H
0020 #define IMBLIBCONFIG_H
0021 
0022 #include <KSharedConfig>
0023 
0024 
0025 class ImData
0026 {
0027 public:
0028   ImData();
0029   ~ImData() {};
0030 
0031   void      load( KSharedConfig::Ptr kc );
0032   void      save( KSharedConfig::Ptr kc );
0033 
0034   // new stuff..........
0035 
0036   int       gamma;
0037   int       brightness;
0038   int       contrast;
0039 
0040   // -----------------------
0041 
0042   bool      ownPalette      :1;
0043   bool      fastRemap       :1;
0044   bool      fastRender      :1;
0045   bool      dither16bit     :1;
0046   bool      dither8bit      :1;
0047   bool      smoothScale     :1;
0048   
0049 
0050   uint          gammaFactor;
0051   uint          brightnessFactor;
0052   uint          contrastFactor;
0053 
0054   uint          maxCache;
0055 
0056 };
0057 
0058 
0059 #endif