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

tdefx

  • tdefx
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 <tdelibs_export.h>
30
31const int KColorMode_Mask = 0x00000300;
32const int WebOnly = 0x00000200;
33const int LowOnly = 0x00000300;
34
35class KPixmapPrivate;
36
57class TDEFX_EXPORT KPixmap : public TQPixmap
58{
59public:
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
209private:
210 KPixmapPrivate *d;
211};
212
213#endif
KPixmap
Off-screen paint device with extended features.
Definition: kpixmap.h:58
KPixmap::KPixmap
KPixmap()
Constructs a null pixmap.
Definition: kpixmap.h:82
KPixmap::GradientMode
GradientMode
This enumeration provides a gradient mode specification.
Definition: kpixmap.h:73
KPixmap::ColorMode
ColorMode
This enumeration provides a color pallete specification.
Definition: kpixmap.h:64
KPixmap::LowColor
@ LowColor
3x3x3 color cube (or monochrome)
Definition: kpixmap.h:67
KPixmap::Auto
@ Auto
Convert to monochrome if possible.
Definition: kpixmap.h:64
KPixmap::Mono
@ Mono
Monochrome pixmap.
Definition: kpixmap.h:66
KPixmap::Color
@ Color
Native display depth.
Definition: kpixmap.h:65

tdefx

Skip menu "tdefx"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdefx

Skip menu "tdefx"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdefx by doxygen 1.9.4
This website is maintained by Timothy Pearson.