KImgIO
#include <QtCore/QFile>
#include <QtGui/QImageIOPlugin>
#include <QtGui/QColor>
Go to the source code of this file.
Classes | |
struct | PICChannel |
struct | PICHeader |
Macros | |
#define | CHANNEL_SIZE sizeof(PICChannel) |
#define | HEADER_SIZE sizeof(PICHeader) |
#define | PIC_MAGIC_NUMBER 0x5380f634 |
Enumerations | |
enum | PICChannelCode { RED = 0x80, GREEN = 0x40, BLUE = 0x20, ALPHA = 0x10 } |
enum | PICChannelType { UNCOMPRESSED = 0, RLE = 2 } |
enum | PICFields { NONE = 0, ODD = 1, EVEN = 2, BOTH = 3 } |
Functions | |
void | pic_read (QIODevice *dev, QImage *img) |
void | pic_write (QIODevice *dev, const QImage *img) |
bool | picReadHeader (QIODevice *dev, PICHeader *hdr, bool peek=false) |
Macro Definition Documentation
#define CHANNEL_SIZE sizeof(PICChannel) |
#define PIC_MAGIC_NUMBER 0x5380f634 |
PIC_RW - Qt PIC Support Copyright (C) 2007 Ruben Lopez r.lop ez@b ren.e s
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Enumeration Type Documentation
enum PICChannelCode |
enum PICChannelType |
enum PICFields |
Function Documentation
void pic_read | ( | QIODevice * | dev, |
QImage * | result | ||
) |
Pic read handler for Qt / KDE.
Pic read handler for Qt / KDE.
Must have this exact name in order to work
Definition at line 264 of file pic_read.cpp.
void pic_write | ( | QIODevice * | dev, |
const QImage * | img | ||
) |
Pic write handler for Qt / KDE.
Definition at line 213 of file pic_write.cpp.
bool picReadHeader | ( | QIODevice * | dev, |
PICHeader * | hdr, | ||
bool | peek | ||
) |
Reads the PIC header and checks that it is OK.
- Parameters
-
dev The QT device to read from hdr A pointer to the PIC header peek Keep bytes in the device
- Returns
- true on success
Reads the PIC header and checks that it is OK.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Reads the PIC header and checks that it is OK
- Parameters
-
dev The QT device to read from hdr A pointer to the PIC header peek Keep bytes in the device
- Returns
- true on success
Definition at line 41 of file pic_read.cpp.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.