QSFML
Image.hpp
Go to the documentation of this file.
1 /* =========================================================== *
2  * QSFML (c) Kamil Koczurek | koczurekk@gmail.com *
3  * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html *
4  * =========================================================== */
7 
8 #ifndef QSF_IMAGE_HPP
9 #define QSF_IMAGE_HPP
10 
11 #include <SFML/Graphics/Image.hpp>
12 #include <QImage>
13 
14 namespace qsf {
20  class Image
21  : public sf::Image {
22  public:
26  Image();
27 
33  Image(const QImage& qImg);
34 
38  QImage asQImage();
39 
45  void loadFromQImage(const QImage& qImg);
46  };
47 }
48 
49 #endif // FEW_H
QImage asQImage()
Converts to QImage.
Definition: Image.cpp:12
Namespace containing all qsf classes and methods.
Definition: Image.cpp:3
Image()
Default constructor.
Definition: Image.cpp:4
sf::Image ↔ QImage compatibility layer
Definition: Image.hpp:20
void loadFromQImage(const QImage &qImg)
Load image from QImage.
Definition: Image.cpp:21