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 createThumbnailUncached(qint32 maxw, qint32 maxh, QRect
rect, qreal
oversample = 1,
572 QImage createThumbnail(qint32 maxw, qint32 maxh,
582 QImage createThumbnail(qint32 maxw, qint32 maxh,
583 Qt::AspectRatioMode aspectRatioMode,
597 bool pixel(qint32 x, qint32 y, QColor *c)
const;
608 bool pixel(qint32 x, qint32 y,
KoColor * kc)
const;
614 KoColor pixel(
const QPoint &pos)
const;
630 bool setPixel(qint32 x, qint32 y,
const QColor& c);
633 bool setPixel(qint32 x, qint32 y,
const KoColor& kc);
722 virtual const KoColorSpace* compositionSourceColorSpace()
const;
737 quint32 pixelSize()
const;
742 quint32 channelCount()
const;
795 bool burnKeyframe(
int frameID);
804 void setDirty(
const QRect & rc);
821 void requestTimeSwitch(
int time);
828 int sequenceNumber()
const;
831 void estimateMemoryStats(qint64 &imageData, qint64 &temporaryData, qint64 &lodData)
const;
891 KUndo2Command* reincarnateWithDetachedHistory(
bool copyContent);
899 friend class PaintDeviceCache;
909 QRect calculateExactBounds(
bool nonDefaultOnly)
const;
925 void updateLodDataStruct(
LodDataStruct *dst,
const QRect &srcRect);
928 void generateLodCloneDevice(
KisPaintDeviceSP dst,
const QRect &originalRect,
int lod);
930 void setSupportsWraparoundMode(
bool value);
931 bool supportsWraproundMode()
const;
933 void setProjectionDevice(
bool value);
951 void emitColorSpaceChanged();
952 void emitProfileChanged();
958 friend class KisSelectionTest;