41 d->
path = QPainterPath();
42 Q_FOREACH (
const QPolygon & polygon,
d->
m_boundary) {
43 d->
path.addPolygon(polygon);
44 d->
path.closeSubpath();
53 pen.setBrush(Qt::black);
56 Q_FOREACH (
const QPolygon & polygon,
d->
m_boundary) {
57 painter.drawPolygon(polygon);
const quint8 OPACITY_TRANSPARENT_U8
void paint(QPainter &painter) const
QPainterPath path() const
returns the outline saved in QPainterPath
KisBoundary(KisFixedPaintDeviceSP dev)
const KoColorSpace * colorSpace() const
void setSimpleOutline(bool simple)
QVector< QPolygon > outline(quint8 *buffer, qint32 xOffset, qint32 yOffset, qint32 width, qint32 height)
KisFixedPaintDeviceSP m_device
QVector< QPolygon > m_boundary