![]() |
Qt 4.8
|
#include <qvolatileimage_p.h>
Public Functions | |
| void | beginDataAccess () const |
| uchar * | bits () |
| Access to pixel data via bits() or constBits() should be guarded by begin/endDataAccess(). More... | |
| int | byteCount () const |
| int | bytesPerLine () const |
| const uchar * | constBits () const |
| const QImage & | constImageRef () const |
| Non-detaching version, for read-only access only. More... | |
| void | copyFrom (QVolatileImage *source, const QRect &rect) |
| int | depth () const |
| void * | duplicateNativeImage () const |
| void | endDataAccess (bool readOnly=false) const |
| bool | ensureFormat (QImage::Format format) |
| void | fill (uint pixelValue) |
| QImage::Format | format () const |
| bool | hasAlphaChannel () const |
| int | height () const |
| QImage & | imageRef () |
| Returns a reference to the image that is potentially using some native buffer internally. More... | |
| bool | isNull () const |
| QVolatileImage & | operator= (const QVolatileImage &rhs) |
| QPaintEngine * | paintEngine () |
| To be called from the PixmapData's paintEngine(). More... | |
| bool | paintingActive () const |
| QVolatileImage () | |
| QVolatileImage (int w, int h, QImage::Format format) | |
| QVolatileImage (const QImage &sourceImage) | |
| QVolatileImage (void *nativeImage, void *nativeMask=0) | |
| QVolatileImage (const QVolatileImage &other) | |
| void | setAlphaChannel (const QPixmap &alphaChannel) |
| QImage | toImage () const |
| This will always perform a copy of the pixel data. More... | |
| int | width () const |
| ~QVolatileImage () | |
Properties | |
| QSharedDataPointer< QVolatileImageData > | d |
Definition at line 63 of file qvolatileimage_p.h.
| QVolatileImage::QVolatileImage | ( | ) |
Definition at line 68 of file qvolatileimage.cpp.
| QVolatileImage::QVolatileImage | ( | int | w, |
| int | h, | ||
| QImage::Format | format | ||
| ) |
Definition at line 73 of file qvolatileimage.cpp.
|
explicit |
Definition at line 78 of file qvolatileimage.cpp.
|
explicit |
Definition at line 83 of file qvolatileimage.cpp.
| QVolatileImage::QVolatileImage | ( | const QVolatileImage & | other | ) |
Definition at line 91 of file qvolatileimage.cpp.
| QVolatileImage::~QVolatileImage | ( | ) |
Definition at line 96 of file qvolatileimage.cpp.
| void QVolatileImage::beginDataAccess | ( | ) | const |
Definition at line 151 of file qvolatileimage.cpp.
Referenced by copyFrom(), QVolatileImagePaintEngine::drawPixmap(), QVGPaintEngine::drawPixmap(), QVGPixmapData::ensureReadback(), fill(), setAlphaChannel(), and QVGPixmapData::toVGImage().
| uchar * QVolatileImage::bits | ( | ) |
Access to pixel data via bits() or constBits() should be guarded by begin/endDataAccess().
Definition at line 165 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::ensureReadback().
| int QVolatileImage::byteCount | ( | ) | const |
Definition at line 136 of file qvolatileimage.cpp.
| int QVolatileImage::bytesPerLine | ( | ) | const |
Definition at line 131 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::ensureReadback(), and QVGPixmapData::toVGImage().
| const uchar * QVolatileImage::constBits | ( | ) | const |
Definition at line 170 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::toVGImage().
| const QImage & QVolatileImage::constImageRef | ( | ) | const |
Non-detaching version, for read-only access only.
Must be guarded by begin/endDataAccess().
Definition at line 207 of file qvolatileimage.cpp.
Referenced by QVolatileImagePaintEngine::drawPixmap().
| void QVolatileImage::copyFrom | ( | QVolatileImage * | source, |
| const QRect & | rect | ||
| ) |
Definition at line 235 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::copy().
| int QVolatileImage::depth | ( | ) | const |
| void * QVolatileImage::duplicateNativeImage | ( | ) | const |
Definition at line 213 of file qvolatileimage.cpp.
| void QVolatileImage::endDataAccess | ( | bool | readOnly = false | ) | const |
Definition at line 156 of file qvolatileimage.cpp.
Referenced by copyFrom(), QVolatileImagePaintEngine::drawPixmap(), QVGPaintEngine::drawPixmap(), QVGPixmapData::ensureReadback(), fill(), setAlphaChannel(), and QVGPixmapData::toVGImage().
| bool QVolatileImage::ensureFormat | ( | QImage::Format | format | ) |
Definition at line 175 of file qvolatileimage.cpp.
Referenced by setAlphaChannel().
| void QVolatileImage::fill | ( | uint | pixelValue | ) |
Definition at line 227 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::fill().
| QImage::Format QVolatileImage::format | ( | ) | const |
Definition at line 116 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::copy(), QVGPixmapData::ensureReadback(), and QVGPixmapData::toVGImage().
| bool QVolatileImage::hasAlphaChannel | ( | ) | const |
Definition at line 146 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::hasAlphaChannel().
| int QVolatileImage::height | ( | ) | const |
| QImage & QVolatileImage::imageRef | ( | ) |
Returns a reference to the image that is potentially using some native buffer internally.
Access to the image's pixel data should be guarded by begin/endDataAccess(). Use it when there is a need for QImage APIs not provided by this class. The returned QImage must never be shared or assigned to.
Definition at line 197 of file qvolatileimage.cpp.
Referenced by copyFrom(), QVGPaintEngine::drawPixmap(), fill(), QVGPixmapData::fill(), paintEngine(), and setAlphaChannel().
| bool QVolatileImage::isNull | ( | ) | const |
Definition at line 111 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::copy(), copyFrom(), QVolatileImagePaintEngine::drawPixmap(), QVGPixmapData::ensureReadback(), QVGPixmapData::forceToImage(), QVGPixmapData::hasAlphaChannel(), QVGPixmapData::hibernate(), QVGPixmapData::toImage(), and QVGPixmapData::toVGImage().
| QVolatileImage & QVolatileImage::operator= | ( | const QVolatileImage & | rhs | ) |
Definition at line 100 of file qvolatileimage.cpp.
| QPaintEngine * QVolatileImage::paintEngine | ( | ) |
To be called from the PixmapData's paintEngine().
Definition at line 267 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::paintEngine().
| bool QVolatileImage::paintingActive | ( | ) | const |
Definition at line 106 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::toVGImage().
| void QVolatileImage::setAlphaChannel | ( | const QPixmap & | alphaChannel | ) |
Definition at line 218 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::setAlphaChannel().
| QImage QVolatileImage::toImage | ( | ) | const |
This will always perform a copy of the pixel data.
Definition at line 183 of file qvolatileimage.cpp.
Referenced by QVGPixmapData::toImage().
| int QVolatileImage::width | ( | ) | const |
|
private |
Definition at line 98 of file qvolatileimage_p.h.
Referenced by beginDataAccess(), bits(), byteCount(), bytesPerLine(), constBits(), constImageRef(), depth(), duplicateNativeImage(), endDataAccess(), ensureFormat(), fill(), format(), hasAlphaChannel(), height(), imageRef(), isNull(), operator=(), paintEngine(), paintingActive(), setAlphaChannel(), toImage(), and width().