KImgIO
Go to the source code of this file.
Macros | |
#define | FAIL() |
Functions | |
unsigned | convertABGRtoRGBA (unsigned pixel) |
static bool | encodeRLE (const unsigned *image, unsigned char *output, bool rgb, unsigned max, unsigned &oConsumed, unsigned &oProduced) |
void | pic_write (QIODevice *dev, const QImage *img) |
static bool | writeHeader (QIODevice *dev, std::string msg, unsigned width, unsigned height, bool alpha) |
static bool | writeRow (QIODevice *dev, unsigned *row, unsigned width, bool alpha) |
Macro Definition Documentation
#define FAIL | ( | ) |
Definition at line 206 of file pic_write.cpp.
Function Documentation
|
inline |
Definition at line 84 of file pic_write.cpp.
|
static |
Encodes a portion of the image in RLE coding.
- Parameters
-
image The image that we want to encode output The output buffer channels The number of channels to write offset Offset in bytes to copy max The maximum number of pixels to write oConsumed The number of pixels consumed from image oProduced The number of bytes produced in out
- Returns
- True on success
Definition at line 103 of file pic_write.cpp.
void pic_write | ( | QIODevice * | dev, |
const QImage * | img | ||
) |
Pic write handler for Qt / KDE.
Definition at line 213 of file pic_write.cpp.
|
static |
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
Writes the PIC header info.
- Parameters
-
dev IO Device msg Header message width Image width height Image height alpha Image has alpha?
- Returns
- True on success
Definition at line 42 of file pic_write.cpp.
|
static |
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.