25 #include "resolution.h"
72 bool read(
const QImage &image);
91 bool read(
const QString &fileName);
106 static QList<imageInfo>
readAll(
const QString &fileName);
138 inline operator QString()
const {
140 if (!
error.isEmpty())
141 result += QString(
"Error: %1; ").arg(
error);
174 bool readJPEG(
const QString &fileName);
182 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.
imageInfo(imageInfo const &)=default
Copy constructor.
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.