128 bool read(QIODevice *stream);
151 void moveTo(qint32 x, qint32 y);
156 virtual void moveTo(
const QPoint& pt);
161 QPoint offset()
const;
193 QRect extent()
const;
196 void extent(qint32 &x, qint32 &y, qint32 &w, qint32 &h)
const;
215 QRect exactBounds()
const;
224 QRect exactBoundsAmortized()
const;
242 QRect nonDefaultPixelArea()
const;
262 void crop(qint32 x, qint32 y, qint32 w, qint32 h);
265 void crop(
const QRect & r);
271 virtual void clear();
277 void clear(
const QRect & rc);
284 void purgeDefaultPixels();
291 void setDefaultPixel(
const KoColor &defPixel);
304 void fill(
const QRect & rc,
const KoColor &color);
310 void fill(qint32 x, qint32 y, qint32 w, qint32 h,
const quint8 *fillPixel);
354 friend class KisPaintDeviceTest;
355 friend class DataReaderThread;
415 void readBytes(quint8 * data, qint32 x, qint32 y, qint32 w, qint32 h)
const;
429 void readBytes(quint8 * data,
const QRect &
rect)
const;
439 void writeBytes(
const quint8 * data, qint32 x, qint32 y, qint32 w, qint32 h);
451 void writeBytes(
const quint8 * data,
const QRect &
rect);
459 QVector<quint8*> readPlanarBytes(qint32 x, qint32 y, qint32 w, qint32 h)
const;
474 void writePlanarBytes(
QVector<quint8*> planes, qint32 x, qint32 y, qint32 w, qint32 h);
498 void convertFromQImage(
const QImage& image,
const KoColorProfile *profile, qint32 offsetX = 0, qint32 offsetY = 0);
550 KisPaintDeviceSP createThumbnailDevice(qint32 w, qint32 h, QRect
rect = QRect(), QRect outputRect = QRect())
const;
565 QImage createThumbnail(qint32 maxw, qint32 maxh, QRect
rect, qreal
oversample = 1,
572 QImage createThumbnail(qint32 maxw, qint32 maxh, qreal
oversample = 1,
580 QImage createThumbnail(qint32 maxw, qint32 maxh,
581 Qt::AspectRatioMode aspectRatioMode,
594 bool pixel(qint32 x, qint32 y, QColor *c)
const;
605 bool pixel(qint32 x, qint32 y,
KoColor * kc)
const;
611 KoColor pixel(
const QPoint &pos)
const;
627 bool setPixel(qint32 x, qint32 y,
const QColor& c);
630 bool setPixel(qint32 x, qint32 y,
const KoColor& kc);
719 virtual const KoColorSpace* compositionSourceColorSpace()
const;
734 quint32 pixelSize()
const;
739 quint32 channelCount()
const;
792 bool burnKeyframe(
int frameID);
801 void setDirty(
const QRect & rc);
818 void requestTimeSwitch(
int time);
825 int sequenceNumber()
const;
828 void estimateMemoryStats(qint64 &imageData, qint64 &temporaryData, qint64 &lodData)
const;
888 KUndo2Command* reincarnateWithDetachedHistory(
bool copyContent);
896 friend class PaintDeviceCache;
906 QRect calculateExactBounds(
bool nonDefaultOnly)
const;
922 void updateLodDataStruct(
LodDataStruct *dst,
const QRect &srcRect);
925 void generateLodCloneDevice(
KisPaintDeviceSP dst,
const QRect &originalRect,
int lod);
927 void setSupportsWraparoundMode(
bool value);
928 bool supportsWraproundMode()
const;
930 void setProjectionDevice(
bool value);
948 void emitColorSpaceChanged();
949 void emitProfileChanged();
955 friend class KisSelectionTest;