Qt 4.8
Public Functions | List of all members
Tga32Reader Struct Reference
Inheritance diagram for Tga32Reader:
TgaReader

Public Functions

QRgb operator() (QIODevice *s) const
 
- Public Functions inherited from TgaReader
virtual ~TgaReader ()
 

Detailed Description

Definition at line 83 of file qtgafile.cpp.

Functions

◆ operator()()

QRgb Tga32Reader::operator() ( QIODevice s) const
inlinevirtual

Implements TgaReader.

Definition at line 85 of file qtgafile.cpp.

86  {
87  char r, g, b, a;
88  if (s->getChar(&b) && s->getChar(&g) && s->getChar(&r) && s->getChar(&a))
89  return qRgba(uchar(r), uchar(g), uchar(b), uchar(a));
90  else
91  return 0;
92  }
bool getChar(char *c)
Reads one character from the device and stores it in c.
Definition: qiodevice.cpp:1536
long ASN1_INTEGER_get ASN1_INTEGER * a
unsigned char uchar
Definition: qglobal.h:994
Q_GUI_EXPORT_INLINE QRgb qRgba(int r, int g, int b, int a)
Definition: qrgb.h:72

The documentation for this struct was generated from the following file: