KImgIO
tga.cpp
Go to the documentation of this file.
91 /*qDebug() << "id_length: " << head.id_length << " - colormap_type: " << head.colormap_type << " - image_type: " << head.image_type;
92 qDebug() << "colormap_index: " << head.colormap_index << " - colormap_length: " << head.colormap_length << " - colormap_size: " << head.colormap_size;
93 qDebug() << "x_origin: " << head.x_origin << " - y_origin: " << head.y_origin << " - width:" << head.width << " - height:" << head.height << " - pixelsize: " << head.pixel_size << " - flags: " << head.flags;*/
289 scanline[x] = qRgb( (c.r << 3) | (c.r >> 2), (c.g << 3) | (c.g >> 2), (c.b << 3) | (c.b >> 2) );
449 QImageIOPlugin::Capabilities TGAPlugin::capabilities(QIODevice *device, const QByteArray &format) const
uchar * scanLine(int i)
typedef Capabilities
bool isWritable() const
virtual QImageIOHandler * create(QIODevice *device, const QByteArray &format) const =0
QIODevice * device() const
virtual bool seek(qint64 pos)
bool isEmpty() const
Definition: tga.h:15
bool isReadable() const
virtual bool isSequential() const
int readRawData(char *s, int len)
virtual qint64 pos() const
QRgb pixel(int x, int y) const
static QDataStream & operator>>(QDataStream &s, DDSPixelFormat &pf)
Definition: dds.cpp:144
int width() const
void setDevice(QIODevice *device)
qint64 read(char *data, qint64 maxSize)
bool isOpen() const
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const =0
bool atEnd() const
void setByteOrder(ByteOrder bo)
virtual QStringList keys() const =0
void setFormat(const QByteArray &format)
int height() const
QIODevice * device() const
int size() const
void ungetChar(char c)
Format format() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.