April 2018
Beginner
714 pages
18h 21m
English
Loading images is very easy. Both QPixmap and QImage have constructors that simply accept a path to a file containing the image. Qt accesses image data through plugins that implement reading and writing operations for different image formats. Without going into the details of plugins, it is enough to say that the default Qt installation supports reading the following image types:
| Type | Description |
|
BMP |
Windows Bitmap |
|
GIF |
Graphics Interchange Format |
|
JPG/JPEG |
Joint Photography Experts Group |
|
PNG |
Portable Network Graphics |
|
PPM/PBM/PGM |
Portable anymap |
|
XBM |
X Bitmap |
|
XPM |
X Pixmap |
As you can see, the most popular image formats are available. The list can be further extended by installing additional ...
Read now
Unlock full access