#include <View.h>
Public Member Functions | |
| virtual | ~SubImageIterator () |
| virtual bool | hasNext () const =0 |
| virtual bool | next (QImage &image)=0 |
| virtual void | location (int &x, int &y) const =0 |
| virtual void | count (int &x, int &y) const =0 |
If you need to grab a "screen shot" of an image which is larger than the physical display dimensions, this class can be used to access tiled sub-images.
Definition at line 860 of file View.h.
| virtual View::SubImageIterator::~SubImageIterator | ( | ) | [virtual] |
Destructor.
It is safe to delete a SubImageIterator. Ownership semantics are described in functions which return a SubImageIterator. Typically, the caller owns the SubImageIterator and must delete it when finished.
| virtual bool View::SubImageIterator::hasNext | ( | ) | const [pure virtual] |
Is there another sub-image? This should be checked before calling next().
| virtual bool View::SubImageIterator::next | ( | QImage & | image | ) | [pure virtual] |
Get the next sub-image.
This will initialize the image to the size and encoding specified when the SubImageIterator was created.
| image | This will hold the resultant image. If this is an invalid QImage, it will be initialized by this method. Alternately, a QImage which was initialized by a previous call to next() may be passed. This prevents re-initialization of the QImage which is more efficient. |
| virtual void View::SubImageIterator::location | ( | int & | x, | |
| int & | y | |||
| ) | const [pure virtual] |
| virtual void View::SubImageIterator::count | ( | int & | x, | |
| int & | y | |||
| ) | const [pure virtual] |
Access the total number of sub-images.
| x | The number of horizontal sub-images. | |
| y | The number of vertical sub-images. |