Re: Clip/crop/cut an image
Thank you, it works, ans it was really easy :)
So, but some questions: what is the difference between paint devices? just the goal what they will modify (e.g. pixmap, widget, image, etc)? But what about the QPicture?When is it useful?
And one more question. What is the connection between QImage, QImageWriter and QImageReader. If I have a QImage, how will it be used by QImageWriter? As I saw, there isn't any constructors for QImageWriter with QImage?
Thank you for your patience.
Re: Clip/crop/cut an image
QPicture can be thought of as a "macro recorder" - you record a series of painting operations and then you can replay them on another device. Just like a display list in OpenGL.
QImage is a storage class for image data that is read using QImageReader and written using QImageWriter. When you construct a QImage from file, it uses QImageReader to populate itself with data. It's because you have many file formats and QImage couldn't handle them all by itself. Thanks to the image reader, we can use plugins to extend Qt with capabilities of handling alien image formats (like medical data, for instance).