kpixmap.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#ifndef __KPIXMAP_H__
00025
#define __KPIXMAP_H__
00026
00027
#include <qpixmap.h>
00028
00029
const int KColorMode_Mask = 0x00000300;
00030
const int WebOnly = 0x00000200;
00031
const int LowOnly = 0x00000300;
00032
00033
class KPixmapPrivate;
00034
00055 class KPixmap :
public QPixmap
00056 {
00057
public:
00062 enum ColorMode {
Auto,
00063
Color,
00064
Mono,
00065
LowColor,
00066
WebColor
00067 };
00071 enum GradientMode { Horizontal,
00072 Vertical,
00073 Diagonal,
00074 CrossDiagonal
00075 };
00076
00080 KPixmap() :
QPixmap() {};
00081
00086
~KPixmap();
00087
00091
KPixmap(
const QPixmap& pix);
00092
00149
bool convertFromImage(
const QImage &img,
int conversion_flags );
00150
00159
bool convertFromImage(
const QImage &img, ColorMode mode = WebColor );
00160
00179
bool load(
const QString& fileName,
const char *format,
00180
int conversion_flags );
00181
00192
bool load(
const QString& fileName,
00193
const char *format = 0,
00194 ColorMode mode = WebColor );
00195
00205
bool checkColorTable(
const QImage &image);
00206
00207
private:
00208 KPixmapPrivate *d;
00209 };
00210
00211
#endif
This file is part of the documentation for kdefx Library Version 3.2.3.