Array of pointers to QUANTUM pointers
Michael Thaler
michael.thaler at physik.tu-muenchen.de
Tue Jun 28 14:57:46 CEST 2005
Hello,
I need to create some temporary arrays which store pixel data. For one array I
can do
QUANTUM * tmp = new QUANTUM[ width * m_pixelSize * sizeof( QUANTUM ) ];
which works fine. If I try to make an array with pointers to these arrays with
QUANTUM **tmpRows = new QUANTUM[ width * m_pixelSize * sizeof( QUANTUM ) ]
[ (int)(fwidth * 2 + 1) ];
I get a compile error:
kis_scale_visitor.cc: In member function `void KisScaleVisitor::scale(double,
double, KisProgressDisplayInterface*, enumFilterType)':
kis_scale_visitor.cc:170: error: cannot convert ``fix_trunc_expr' not
supported
kis_scale_visitor.cc:170: sorry, unimplemented: by dump_expr
kis_scale_visitor.cc:170: sorry, unimplemented: QUANTUM (*)[((<expression
error> - 1) + 1)]' to `QUANTUM**' in initialization
kis_scale_visitor.cc:170: warning: unused variable `QUANTUM**tmpRows'
make[2]: *** [kis_scale_visitor.lo] Error 1
make[2]: Leaving directory `/usr/local/src/kde/koffice/krita/core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/kde/koffice/krita/core'
make: *** [all-recursive] Error 1
I really don't know what this means. How can I create an array of
QUANTUM * tmp = new QUANTUM[ width * m_pixelSize * sizeof( QUANTUM ) ];?
Thanks,
Michael
More information about the kimageshop
mailing list