12 #ifndef LARGEIMAGEREADER_H_
13 #define LARGEIMAGEREADER_H_
16 #include <QtGui/QImageReader>
17 #include <QtCore/QSize>
18 #include <QtCore/QRect>
36 class jpegClippedReader;
44 DtAutoFitLargeImage = 2
48 int stepSize = 2,
const QByteArray &format = QByteArray());
49 DtLargeImageReader(
const QString &fileName, DtLargeImageFlags fl = DtAutoFitLargeImage,
50 int stepSize = 2,
const QByteArray &format = QByteArray());
53 static bool canCreateImageOfSize(
const QSize&,
int imageDepth = 32);
55 void setImageSize(
const QSize&);
56 const QSize& imageSize()
const;
58 void setStepSize(
int);
63 virtual QImage read();
69 virtual QSize imageSizeToUse(
const QSize& expectedSize)
const;
73 virtual QSize minimumImageSize(
const QSize& basedOn,
int stepSize = 2)
const;
77 virtual QImage loadImage(
const QSize& imageSize);
81 virtual QSize determineSize()
const;
85 virtual QSize size()
const;
88 virtual bool supportsOption(QImageIOHandler::ImageOption option)
const;
89 virtual QRect clipRect()
const;
90 virtual void setClipRect(
const QRect&);
92 virtual bool isJpeg()
const;
96 virtual QImage loadClippedImage(
const QRect& clipRect,
const QSize& outputSize);
99 virtual bool canImportImage()
const;
102 virtual QImage loadClippedJpeg(
const QRect& clipRect,
const QSize& outputSize);