Sorry i know this is a stupid question but i don't know how to do this...
i need to create a dinamic matrix to capture some pixels of the screen...
i want something like this (i know this code doesn't work)
void capture_matrix (int x, int y)
int m = new m[x][y] sizeof (int)
the rest of my code
how can i do that???? i really need to do that for capture a matrix of pixeles with getpixel(); it is for capture first a small matrix, then draw something over that and then restore the matrix with putpixel(m[cx][cy])