10#include <QSharedDataPointer>
15#define ImageShapeId "ImageShape"
26 void paint(QPainter &painter)
const override;
44 QSharedDataPointer<Private>
m_d;
virtual QSizeF size() const
Get the size of the shape in pt.
Contains data used for loading svg.
Context for saving svg files.
An interface providing svg loading and saving routines.
void setImage(const QImage &img)
void setViewBoxTransform(const QTransform &tf)
void setSize(const QSizeF &size) override
Resize the shape.
bool loadSvg(const QDomElement &element, SvgLoadingContext &context) override
Loads data from specified svg element.
bool saveSvg(SvgSavingContext &context) override
Saves data utilizing specified svg saving context.
void paint(QPainter &painter) const override
Paint the shape fill The class extending this one is responsible for painting itself....
KoShape * cloneShape() const override
creates a deep copy of the shape or shape's subtree
QSharedDataPointer< Private > m_d
QTransform viewBoxTransform() const