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

KImgIO

  • kimgio
Classes | Macros | Enumerations | Functions
pic_rw.h File Reference
#include <QtCore/QFile>
#include <QtGui/QImageIOPlugin>
#include <QtGui/QColor>

Go to the source code of this file.

Classes

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

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)

Definition at line 91 of file pic_rw.h.

#define HEADER_SIZE   sizeof(PICHeader)

Definition at line 90 of file pic_rw.h.

#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

Definition at line 31 of file pic_rw.h.


Enumeration Type Documentation

enum PICChannelCode

Channel codes.

Enumerator:
RED 
GREEN 
BLUE 
ALPHA 

Definition at line 58 of file pic_rw.h.

enum PICChannelType

Type of a channel.

Enumerator:
UNCOMPRESSED 
RLE 

Definition at line 50 of file pic_rw.h.

enum PICFields

How fields are distributed over the image.

Enumerator:
NONE 
ODD 
EVEN 
BOTH 

Definition at line 40 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.

This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:48:15 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KImgIO

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal