22 #ifndef PIXMAP3VTILEOBJECT_H_
23 #define PIXMAP3VTILEOBJECT_H_
31 namespace PixmapVTilingStyle
48 const QString& imageFilename,
49 const QVector<QRect>& sliceCoordinates,
51 const char * format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor);
55 const QString& imageFilename,
56 const quint32 topIn,
const quint32 bottomIn,
58 const char * format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor);
62 virtual QSize
size()
const;
63 virtual int width()
const;
64 virtual int height()
const;
65 virtual QSizeF
sizeF()
const;
73 virtual void paint(QPainter * painter,
const QPointF& targetOriginInPainterCS);
75 virtual bool resize(
const QSize& size);
76 virtual bool resize(
const quint32 w,
const quint32 h);
78 virtual bool retile(
const quint32 topIn,
const quint32 bottomIn,
83 virtual bool retile(
const QVector<QRect>& sliceCoordinates,
87 static bool makeSlices(
const quint32 width,
const quint32 height,
88 const quint32 topIn,
const quint32 bottomIn,
89 QVector<QRect>& r_slices,