• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdefx
 

kdefx

  • kdefx
kpixmap.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 1998 Mark Donohoe <donohoe@kde.org>
4  * Stephan Kulow <coolo@kde.org>
5  *
6  * $Id$
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public License
19  * along with this library; see the file COPYING.LIB. If not, write to
20  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23 
24 #ifndef __KPIXMAP_H__
25 #define __KPIXMAP_H__
26 
27 #include <tqpixmap.h>
28 
29 #include <kdelibs_export.h>
30 
31 const int KColorMode_Mask = 0x00000300;
32 const int WebOnly = 0x00000200;
33 const int LowOnly = 0x00000300;
34 
35 class KPixmapPrivate;
36 
57 class KDEFX_EXPORT KPixmap : public TQPixmap
58 {
59 public:
64  enum ColorMode { Auto,
65  Color,
66  Mono,
67  LowColor,
68  WebColor
69  };
73  enum GradientMode { Horizontal,
74  Vertical,
75  Diagonal,
76  CrossDiagonal
77  };
78 
82  KPixmap() : TQPixmap() {};
83 
88  ~KPixmap();
89 
93  KPixmap(const TQPixmap& pix);
94 
151  bool convertFromImage( const TQImage &img, int conversion_flags );
152 
161  bool convertFromImage( const TQImage &img, ColorMode mode = WebColor );
162 
181  bool load( const TQString& fileName, const char *format,
182  int conversion_flags );
183 
194  bool load( const TQString& fileName,
195  const char *format = 0,
196  ColorMode mode = WebColor );
197 
207  bool checkColorTable(const TQImage &image);
208 
209 private:
210  KPixmapPrivate *d;
211 };
212 
213 #endif

kdefx

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

kdefx

Skip menu "kdefx"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdefx by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |