• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdefx

kpixmap.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (C) 1998  Mark Donohoe <donohoe@kde.org>
00004  *          Stephan Kulow <coolo@kde.org>
00005  *
00006  *  $Id: kpixmap.h 465272 2005-09-29 09:47:40Z mueller $
00007  *
00008  *  This library is free software; you can redistribute it and/or
00009  *  modify it under the terms of the GNU Library General Public
00010  *  License as published by the Free Software Foundation; either
00011  *  version 2 of the License, or (at your option) any later version.
00012  *
00013  *  This library is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  *  Library General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU Library General Public License
00019  *  along with this library; see the file COPYING.LIB.  If not, write to
00020  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021  *  Boston, MA 02110-1301, USA.
00022  */
00023 
00024 #ifndef __KPIXMAP_H__
00025 #define __KPIXMAP_H__
00026 
00027 #include <qpixmap.h>
00028 
00029 #include <kdelibs_export.h>
00030 
00031 const int KColorMode_Mask   = 0x00000300;
00032 const int WebOnly   = 0x00000200;
00033 const int LowOnly   = 0x00000300;
00034 
00035 class KPixmapPrivate;
00036 
00057 class KDEFX_EXPORT KPixmap : public QPixmap
00058 {
00059 public:
00064         enum ColorMode { Auto,   
00065              Color,  
00066              Mono,   
00067              LowColor, 
00068              WebColor 
00069     };
00073         enum GradientMode { Horizontal,
00074                 Vertical,
00075                 Diagonal,
00076                 CrossDiagonal
00077     };
00078 
00082          KPixmap() : QPixmap() {};
00083 
00088     ~KPixmap();
00089 
00093     KPixmap(const QPixmap& pix);
00094 
00151     bool convertFromImage( const QImage &img, int conversion_flags );
00152 
00161     bool convertFromImage( const QImage &img, ColorMode mode = WebColor );
00162 
00181     bool load( const QString& fileName, const char *format,
00182         int conversion_flags );
00183 
00194     bool load( const QString& fileName,
00195         const char *format = 0,
00196         ColorMode mode = WebColor );
00197 
00207     bool checkColorTable(const QImage &image);
00208 
00209 private:
00210     KPixmapPrivate *d;
00211 };
00212 
00213 #endif

kdefx

Skip menu "kdefx"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal