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
 

Get the colorspace of this image.

Definition at line 59 of file kis_paint_device_iface.cc.

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
 

Return the number of bytes a pixel takes.

Definition at line 36 of file kis_paint_device_iface.cc.

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  ) 
 

Set the colorspace of this image.

Definition at line 70 of file kis_paint_device_iface.cc.

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:
KDE Home | KDE Accessibility Home | Description of Access Keys