Qt 4.8
|
Classes | |
struct | IcoAttrib |
Public Functions | |
int | count () |
QImage | iconAt (int index) |
ICOReader (QIODevice *iodevice) | |
Static Public Functions | |
static bool | canRead (QIODevice *iodev) |
static QList< QImage > | read (QIODevice *device) |
Reads all the icons from the given device, and returns them as a list of QImage objects. More... | |
static bool | write (QIODevice *device, const QList< QImage > &images) |
Writes all the QImages in the images list to the given device. More... | |
Private Functions | |
void | findColorInfo (QImage &image) |
void | read16_24_32BMP (QImage &image) |
void | read1BitBMP (QImage &image) |
void | read4BitBMP (QImage &image) |
void | read8BitBMP (QImage &image) |
void | readBMP (QImage &image) |
bool | readBMPHeader (quint32 imageOffset, BMP_INFOHDR *header) |
void | readColorTable (QImage &image) |
bool | readHeader () |
bool | readIconEntry (int index, ICONDIRENTRY *iconEntry) |
Properties | |
bool | headerRead |
struct ICOReader::IcoAttrib | icoAttrib |
ICONDIR | iconDir |
QIODevice * | iod |
qint64 | startpos |
Definition at line 102 of file qicohandler.cpp.
ICOReader::ICOReader | ( | QIODevice * | iodevice | ) |
|
static |
Definition at line 268 of file qicohandler.cpp.
Referenced by QtIcoHandler::canRead().
int ICOReader::count | ( | ) |
|
private |
Definition at line 377 of file qicohandler.cpp.
Referenced by iconAt().
QImage ICOReader::iconAt | ( | int | index | ) |
Definition at line 523 of file qicohandler.cpp.
Referenced by read().
Reads all the icons from the given device, and returns them as a list of QImage objects.
Each image has an alpha channel that represents the mask from the corresponding icon.
Definition at line 622 of file qicohandler.cpp.
|
private |
Definition at line 489 of file qicohandler.cpp.
Referenced by readBMP().
|
private |
NOTE: A 1 bit BMP is only flipped vertically, and not horizontally like all other color depths! (This is the same with the bitmask)
Definition at line 422 of file qicohandler.cpp.
Referenced by iconAt(), and readBMP().
|
private |
Definition at line 440 of file qicohandler.cpp.
Referenced by readBMP().
|
private |
Definition at line 471 of file qicohandler.cpp.
Referenced by readBMP().
|
private |
|
private |
Definition at line 365 of file qicohandler.cpp.
Referenced by iconAt().
|
private |
Definition at line 386 of file qicohandler.cpp.
Referenced by findColorInfo().
|
private |
Definition at line 340 of file qicohandler.cpp.
Referenced by count().
|
private |
Definition at line 353 of file qicohandler.cpp.
Referenced by iconAt().
Writes all the QImages in the images list to the given device.
Returns true if the images are written successfully; otherwise returns false.
The first image in the list is stored as the first icon in the device, and is therefore used as the default icon by applications. The alpha channel of each image is converted to a mask for each corresponding icon.
Definition at line 646 of file qicohandler.cpp.
Referenced by QtIcoHandler::write().
|
private |
Definition at line 139 of file qicohandler.cpp.
Referenced by readHeader().
|
private |
Referenced by findColorInfo(), iconAt(), read16_24_32BMP(), read4BitBMP(), read8BitBMP(), readBMP(), and readColorTable().
|
private |
Definition at line 140 of file qicohandler.cpp.
Referenced by count(), and readHeader().
|
private |
Definition at line 137 of file qicohandler.cpp.
Referenced by iconAt(), read16_24_32BMP(), read1BitBMP(), read4BitBMP(), read8BitBMP(), readBMPHeader(), readColorTable(), readHeader(), and readIconEntry().
|
private |
Definition at line 138 of file qicohandler.cpp.
Referenced by readBMPHeader(), readHeader(), and readIconEntry().