45 #include <QtGui/QColor> 46 #include <QtGui/QImage> 91 inline int width()
const;
123 return d[0] + d[1] * 256;
Compression compression() const
#define QT_END_NAMESPACE
This macro expands to.
QTgaFile(QIODevice *)
Construct a new QTgaFile object getting data from device.
The QString class provides a Unicode character string.
QImage readImage()
Reads an image file from the QTgaFile's device, and returns it.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString errorMessage() const
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
The QImage class provides a hardware-independent image representation that allows direct access to th...
unsigned char mHeader[HeaderSize]
The QSize class defines the size of a two-dimensional object using integer point precision.
static quint16 littleEndianInt(const unsigned char *d)
Returns the integer encoded in the two little endian bytes at d.
~QTgaFile()
Destroy the device, recovering any resources.
The QIODevice class is the base interface class of all I/O devices in Qt.