Array of pointers to QUANTUM pointers
Bart Coppens
kde at bartcoppens.be
Tue Jun 28 15:04:57 CEST 2005
On Tuesday 28 June 2005 14:57, Michael Thaler wrote:
> QUANTUM **tmpRows = new QUANTUM[ width * m_pixelSize * sizeof( QUANTUM ) ]
> [ (int)(fwidth * 2 + 1) ];
Afaik, you need to do that in 2 steps: first create an array of QUANTUM*, and
then there arrays of QUANTUM:
QUANTUM **tmpRows = new QUANTUM*[size1];
for (int i = 0; i < size1; i++)
tmpRows[i] = new QUANTUM[size2];
More information about the kimageshop
mailing list