• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KImgIO

Classes | Defines | Enumerations | Functions

pic_rw.h File Reference

#include <kdebug.h>
#include <QtCore/QFile>
#include <QtGui/QImageIOPlugin>
#include <QtGui/QColor>
Include dependency graph for pic_rw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PICChannel
 PIC channel header. More...
struct  PICHeader
 PIC format header. More...

Defines

#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)

Define Documentation

#define CHANNEL_SIZE   sizeof(PICChannel)

Definition at line 92 of file pic_rw.h.

#define HEADER_SIZE   sizeof(PICHeader)

Definition at line 91 of file pic_rw.h.

#define PIC_MAGIC_NUMBER   0x5380f634

PIC_RW - Qt PIC Support Copyright (C) 2007 Ruben Lopez <r.lopez@bren.es>

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 ----------------------------------------------------------------------------

Definition at line 31 of file pic_rw.h.


Enumeration Type Documentation

enum PICChannelCode

Channel codes.

Enumerator:
RED 
GREEN 
BLUE 
ALPHA 

Definition at line 59 of file pic_rw.h.

enum PICChannelType

Type of a channel.

Enumerator:
UNCOMPRESSED 
RLE 

Definition at line 51 of file pic_rw.h.

enum PICFields

How fields are distributed over the image.

Enumerator:
NONE 
ODD 
EVEN 
BOTH 

Definition at line 41 of file pic_rw.h.


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:
devThe QT device to read from
hdrA pointer to the PIC header
peekKeep 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:
devThe QT device to read from
hdrA pointer to the PIC header
peekKeep bytes in the device
Returns:
true on success

Definition at line 41 of file pic_read.cpp.

KImgIO

Skip menu "KImgIO"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal