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

Public Functions

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

Detailed Description

Definition at line 71 of file qtgafile.cpp.

Functions

◆ operator()()

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

Implements TgaReader.

Definition at line 73 of file qtgafile.cpp.

74  {
75  char r, g, b;
76  if (s->getChar(&b) && s->getChar(&g) && s->getChar(&r))
77  return qRgb(uchar(r), uchar(g), uchar(b));
78  else
79  return 0;
80  }
bool getChar(char *c)
Reads one character from the device and stores it in c.
Definition: qiodevice.cpp:1536
unsigned char uchar
Definition: qglobal.h:994
Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)
Definition: qrgb.h:69

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