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

KImgIO

  • sources
  • kde-4.12
  • kdelibs
  • kimgio
Classes | Macros | Enumerations | Functions
pic_rw.h File Reference
#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
 
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)

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

KImgIO

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

kdelibs API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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