| # kdefx Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kpixmap.h

    00001 /*
    00002  *  This file is part of the KDE libraries
    00003  *  Copyright (C) 1998  Mark Donohoe <donohoe@kde.org>
    00004  *                      Stephan Kulow <coolo@kde.org>
    00005  *
    00006  *  $Id: kpixmap.h,v 1.27 2002/07/31 23:14:10 orlovich Exp $
    00007  *
    00008  *  This library is free software; you can redistribute it and/or
    00009  *  modify it under the terms of the GNU Library General Public
    00010  *  License as published by the Free Software Foundation; either
    00011  *  version 2 of the License, or (at your option) any later version.
    00012  *
    00013  *  This library is distributed in the hope that it will be useful,
    00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00016  *  Library General Public License for more details.
    00017  *
    00018  *  You should have received a copy of the GNU Library General Public License
    00019  *  along with this library; see the file COPYING.LIB.  If not, write to
    00020  *  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00021  *  Boston, MA 02111-1307, USA.
    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:
    00058         enum ColorMode { Auto, Color, Mono, LowColor, WebColor };
    00059         enum GradientMode { Horizontal, Vertical, Diagonal, CrossDiagonal };
    00060
    00064          KPixmap() : QPixmap() {};
    00065
    00069         ~KPixmap() {};
    00070
    00074         KPixmap(const QPixmap& pix);
    00075
    00129         bool convertFromImage( const QImage &img, int conversion_flags );
    00130
    00136         bool convertFromImage( const QImage &img, ColorMode mode = WebColor );
    00137
    00155         bool load( const QString& fileName, const char *format,
    00156                 int conversion_flags );
    00157
    00163         bool load( const QString& fileName,
    00164                 const char *format = 0,
    00165                 ColorMode mode = WebColor );
    00166
    00175         bool checkColorTable(const QImage &image);
    00176
    00177 private:
    00178     KPixmapPrivate *d;
    00179 };
    00180
    00181 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:44:24 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001