ColorGridSeries::AddArrayGrid
Posted: Tue Nov 30, 2004 7:07 am
Hi, I have this code:
int i = 0;
int sx, sy;
double * buf = new double[nx*ny];
...
for(int y=0; y<ny; ++y) {
for(int x=0; x<nx; ++x,++i) {
m_SeriesGrid.GetAsColorGrid().AddXYZ( (double)(x+sx), buf, (double)(y+sy), "", my_palette.GetColor( buf ));
}
}
My question: how i can use method AddArrayGrid (or may be AddArrayXYZ) instead of these loops and calling AddXYZ?
Thanks
int i = 0;
int sx, sy;
double * buf = new double[nx*ny];
...
for(int y=0; y<ny; ++y) {
for(int x=0; x<nx; ++x,++i) {
m_SeriesGrid.GetAsColorGrid().AddXYZ( (double)(x+sx), buf, (double)(y+sy), "", my_palette.GetColor( buf ));
}
}
My question: how i can use method AddArrayGrid (or may be AddArrayXYZ) instead of these loops and calling AddXYZ?
Thanks