Choice of readPixelData in the colour strategies

Patrick Julien freak at codepimps.org
Mon Feb 16 23:06:49 CET 2004


On February 16, 2004 03:57 pm, Boudewijn Rempt wrote:
> Stupid question maybe -- but in the colour strategies we laboriously create
> a KisPixelData object only to feed it to KisTileMgr which fills it's data
> with data; why don't we use void KisTileMgr::readPixelData(Q_INT32 x1,
> Q_INT32 y1, Q_INT32 x2, Q_INT32 y2, QUANTUM *buffer, Q_UINT32 stride) which
> could work directly on the m_buf QUANTUM buffer? I don't quite see where we
> need the other KisPixelData fields -- but I cannot imagine there isn't a
> reason for doing all that work...

That readPixelData is now private... but the real reason is that I simply 
forgot about it when using I initially wrote it.



More information about the kimageshop mailing list