krita
KisPaintDeviceIface Class Reference
List of all members.Detailed Description
Definition at line 30 of file kis_paint_device_iface.h.
DCOP Member Functions | |
Q_INT32 | pixelSize () const |
Q_INT32 | nChannels () const |
QByteArray | readBytes (Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h) |
void | writeBytes (QByteArray bytes, Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h) |
DCOPRef | colorSpace () const |
void | setColorSpace (DCOPRef colorSpace) |
Public Member Functions | |
KisPaintDeviceIface (KisPaintDevice *parent) |
Member Function Documentation
DCOPRef KisPaintDeviceIface::colorSpace | ( | ) | const |
Q_INT32 KisPaintDeviceIface::nChannels | ( | ) | const |
Return the number of channels a pixel takes.
Definition at line 41 of file kis_paint_device_iface.cc.
Q_INT32 KisPaintDeviceIface::pixelSize | ( | ) | const |
QByteArray KisPaintDeviceIface::readBytes | ( | Q_INT32 | x, | |
Q_INT32 | y, | |||
Q_INT32 | w, | |||
Q_INT32 | h | |||
) |
Read the bytes representing the rectangle described by x, y, w, h into data.
If data is not big enough, Krita will gladly overwrite the rest of your precious memory.
Since this is a copy, you need to make sure you have enough memory.
Reading from areas not previously initialized will read the default pixel value into data.
Definition at line 46 of file kis_paint_device_iface.cc.
void KisPaintDeviceIface::setColorSpace | ( | DCOPRef | colorSpace | ) |
void KisPaintDeviceIface::writeBytes | ( | QByteArray | bytes, | |
Q_INT32 | x, | |||
Q_INT32 | y, | |||
Q_INT32 | w, | |||
Q_INT32 | h | |||
) |
Copy the bytes in data into the rect specified by x, y, w, h.
If there data is too small or uninitialized, Krita will happily read parts of memory you never wanted to be read.
If the data is written to areas of the paint device not previously initialized, the paint device will grow.
Definition at line 54 of file kis_paint_device_iface.cc.
The documentation for this class was generated from the following files: