krita/ui
KisImagePatch Struct Reference
#include <kis_projection_backend.h>
Public Member Functions | |
| void | drawMe (QPainter &gc, const QRectF &dstRect, QPainter::RenderHints renderHints) |
| void | prescaleWithBlitz (QRectF dstRect) |
Public Attributes | |
| QImage | m_image |
| QRectF | m_interestRect |
| QRect | m_patchRect |
| qreal | m_scaleX |
| qreal | m_scaleY |
Detailed Description
Definition at line 95 of file kis_projection_backend.h.
Member Function Documentation
| void KisImagePatch::drawMe | ( | QPainter & | gc, | |
| const QRectF & | dstRect, | |||
| QPainter::RenderHints | renderHints | |||
| ) |
Darws an m_interestRect of the patch onto By the way it fits this rect into are directly tranmitted to QPainter.
Just for debugging purposes
Definition at line 39 of file kis_projection_backend.cpp.
| void KisImagePatch::prescaleWithBlitz | ( | QRectF | dstRect | ) |
Prescales an interestRect a bit with Blitz It's usefulness is dispulable and should be tested, so - FIXME.
Definition at line 64 of file kis_projection_backend.cpp.
Member Data Documentation
Definition at line 119 of file kis_projection_backend.h.
The rect that was requested during creation of the patch.
It equals to patchRect withount borders These borders are introdused for more accurate smooth scaling to reduce border effects (IN m_image PIXELS, relative to m_image's topLeft);
Definition at line 117 of file kis_projection_backend.h.
The rect of KisImage covered by the image of the patch (in KisImage pixels).
Definition at line 106 of file kis_projection_backend.h.
| qreal KisImagePatch::m_scaleX |
The scale of the image stored in the patch.
Definition at line 99 of file kis_projection_backend.h.
| qreal KisImagePatch::m_scaleY |
Definition at line 100 of file kis_projection_backend.h.
The documentation for this struct was generated from the following files:
