kpixmap.h
/*
* This file is part of the KDE libraries
* Copyright (C) 1998 Mark Donohoe <donohoe@kde.org>
* Stephan Kulow <coolo@kde.org>
*
* $Id: kpixmap.h 465272 2005-09-29 09:47:40Z mueller $
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __KPIXMAP_H__
#define __KPIXMAP_H__
#include <qpixmap.h>
#include <kdelibs_export.h>
const int KColorMode_Mask = 0x00000300;
const int WebOnly = 0x00000200;
const int LowOnly = 0x00000300;
class KPixmapPrivate;
class KDEFX_EXPORT KPixmap : public QPixmap
{
public:
enum ColorMode { Auto,
Color,
Mono,
LowColor,
WebColor
};
enum GradientMode { Horizontal,
Vertical,
Diagonal,
CrossDiagonal
};
KPixmap() : QPixmap() {};
~KPixmap();
KPixmap(const QPixmap& pix);
bool convertFromImage( const QImage &img, int conversion_flags );
bool convertFromImage( const QImage &img, ColorMode mode = WebColor );
bool load( const QString& fileName, const char *format,
int conversion_flags );
bool load( const QString& fileName,
const char *format = 0,
ColorMode mode = WebColor );
bool checkColorTable(const QImage &image);
private:
KPixmapPrivate *d;
};
#endif
KPixmap
Off-screen paint device with extended features.
Definition: kpixmap.h:57
KPixmap::ColorMode
ColorMode
This enumeration provides a color pallete specification.
Definition: kpixmap.h:64
KPixmap::KPixmap
KPixmap()
Constructs a null pixmap.
Definition: kpixmap.h:82
KPixmap::LowColor
3x3x3 color cube (or monochrome)
Definition: kpixmap.h:67
KPixmap::GradientMode
GradientMode
This enumeration provides a gradient mode specification.
Definition: kpixmap.h:73
KPixmap::Color
Native display depth.
Definition: kpixmap.h:65
KPixmap::Mono
Monochrome pixmap.
Definition: kpixmap.h:66

KDE Home | KDE Accessibility Home | Description of Access Keys