Represents a full-resolution image, a lower-resolution thumbnail, or part of an image.
More...
#include <quillimage.h>
List of all members.
Detailed Description
Represents a full-resolution image, a lower-resolution thumbnail, or part of an image.
QuillImage is an extension to QImage, containing information about the dimensions of the full image represented by it, as in fullImageSize(), and the relative location of the QuillImage within the full image coordinates, as in area(). As with QImage, the data in QuillImage objects is implicitly shared.
Constructor & Destructor Documentation
QuillImage::QuillImage |
( |
|
) |
|
QuillImage::QuillImage |
( |
const QImage & |
image |
) |
|
QuillImage::QuillImage |
( |
const QImage & |
image, |
|
|
const QSize & |
fullImageSize | |
|
) |
| | |
QuillImage::QuillImage |
( |
const QuillImage & |
image |
) |
|
QuillImage::QuillImage |
( |
const QuillImage & |
quillImage, |
|
|
const QImage & |
image | |
|
) |
| | |
QuillImage::~QuillImage |
( |
|
) |
[virtual] |
Member Function Documentation
QRect QuillImage::area |
( |
|
) |
const |
Returns the area covered by this image, in full-image coordinates.
QSize QuillImage::fullImageSize |
( |
|
) |
const |
The size (in pixels) of the full image, of which this image is a part.
bool QuillImage::isFragment |
( |
|
) |
const |
Returns true if the image is a fragment, false if the image is the full image or a downscaled version of it.
void QuillImage::setArea |
( |
const QRect & |
area |
) |
|
Sets the area covered by this image, in full-image coordinates.
void QuillImage::setFullImageSize |
( |
const QSize & |
size |
) |
|
Change the size (in pixels) of the full image, of which this image is a part.
void QuillImage::setTargetSize |
( |
const QSize & |
size |
) |
|
Used to set the target size if this QuillImage is passed as a parameter to an image filter, currently only used by the Load filter. The target size defaults to the image size.
void QuillImage::setZ |
( |
int |
z |
) |
|
Sets the z-coordinate of this image. This is useful for determining which of the potentially overlapping images to draw first.
QSize QuillImage::targetSize |
( |
|
) |
const |
Used to check the target size of the image. This is usually the same as the image size. See also setTargetSize().
int QuillImage::z |
( |
|
) |
const |
Returns the z-coordinate of this image. This is useful for determining which of the potentially overlapping images to draw first.
The documentation for this class was generated from the following files: