QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_QImageIOHandler.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_QIMAGEIOHANDLER_H
2 #define QTSCRIPTSHELL_QIMAGEIOHANDLER_H
3 
4 #include <qimageiohandler.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_QImageIOHandler : public QImageIOHandler
9 {
10 public:
13 
14  bool canRead() const;
15  int currentImageNumber() const;
16  QRect currentImageRect() const;
17  int imageCount() const;
18  bool jumpToImage(int imageNumber);
19  bool jumpToNextImage();
20  int loopCount() const;
21  int nextImageDelay() const;
22  QVariant option(QImageIOHandler::ImageOption option) const;
23  bool read(QImage* image);
24  void setOption(QImageIOHandler::ImageOption option, const QVariant& value);
25  bool supportsOption(QImageIOHandler::ImageOption option) const;
26  bool write(const QImage& image);
27 
28  QScriptValue __qtscript_self;
29 };
30 
31 #endif // QTSCRIPTSHELL_QIMAGEIOHANDLER_H