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
◆ CHANNEL_SIZE
#define CHANNEL_SIZE sizeof(PICChannel) |
◆ HEADER_SIZE
◆ PIC_MAGIC_NUMBER
#define PIC_MAGIC_NUMBER 0x5380f634 |
PIC_RW - Qt PIC Support Copyright (C) 2007 Ruben Lopez r.lop.nosp@m.ez@b.nosp@m.ren.e.nosp@m.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
◆ PICChannelCode
enum PICChannelCode |
◆ PICChannelType
enum PICChannelType |
◆ PICFields
enum PICFields |
Function Documentation
◆ pic_read()
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.
◆ pic_write()
void pic_write | ( | QIODevice * | dev, |
const QImage * | img | ||
) |
Pic write handler for Qt / KDE.
Definition at line 213 of file pic_write.cpp.
◆ picReadHeader()
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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.