25 #include "resolution.h"
70 bool read(
const QImage &image);
89 bool read(
const QString &fileName);
104 static QList<imageInfo>
readAll(
const QString &fileName);
136 inline operator QString()
const {
138 if (!
error.isEmpty())
139 result += QString(
"Error: %1; ").arg(
error);
172 bool readJPEG(
const QString &fileName);
180 bool readJP2(
const QString &fileName);
Trivial class to store elementary info about bitmap graphics.
quint32 heightInPixel
Image height in pixels.
bool read(const QImage &image)
Reads image info from a QImage.
resolution _yResolution
Horizontal resolution of the image, in dots per inch.
resolution yResolution() const
Horizontal resolution.
imageInfo(const QImage &image)
Constructs an image info from a QImage.
void clear()
Sets all values to zero.
imageInfo(const QString &fileName)
Constructs an image info from a file.
resolution xResolution() const
Vertical resolution.
resolution _xResolution
Horizontal resolution of the image, in dots per inch.
quint8 numberOfColorComponents
Number of color components.
QString error
Error string.
static QList< imageInfo > readAll(const QString &fileName)
Construct image infos for all images in a file.
bool isEmpty() const
Checks if image is empty.
bool read(const QString &fileName)
Read image info from an image file.
imageInfo()
Default constructor.
quint32 widthInPixel
Image width in pixels.
The resolution class stores a resolution and converts between units.
qreal get(unit u) const
Get numerical value for resolution.