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
31
const
int
KColorMode_Mask = 0x00000300;
32
const
int
WebOnly = 0x00000200;
33
const
int
LowOnly = 0x00000300;
34
35
class
KPixmapPrivate;
36
57
class
TDEFX_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
tdefx
Skip menu "tdefx"
Main Page
Alphabetical List
Class List
File List
Class Members
tdefx
Skip menu "tdefx"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdecore
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdeioslave
http
tdefile
tdeio
tdeioexec
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet