#include <CQCopasiEffect.h>
Definition at line 13 of file CQCopasiEffect.h.
CQCopasiEffect::CQCopasiEffect |
( |
| ) |
|
CQCopasiEffect::~CQCopasiEffect |
( |
| ) |
|
|
virtual |
void CQCopasiEffect::draw |
( |
QPainter * |
painter | ) |
|
|
protected |
Definition at line 25 of file CQCopasiEffect.cpp.
References mScale.
28 const QPixmap pixmap = sourcePixmap(Qt::DeviceCoordinates, &offset);
34 painter->setWorldTransform(QTransform());
35 QRectF rect = pixmap.rect();
37 QTransform trans = QTransform::fromScale(
mScale,
mScale);
38 QPixmap transformed = pixmap.transformed(trans, Qt::SmoothTransformation);
39 QRectF transRect = transformed.rect();
41 QPointF newOffset = offset + (rect.center() - transRect.center());
43 painter->drawPixmap(newOffset, transformed);
void CQCopasiEffect::setScale |
( |
qreal |
scale | ) |
|
qreal CQCopasiEffect::mScale |
|
protected |
The documentation for this class was generated from the following files: