Hi,

I have an input array which is containing info from a rectangle, each point is started from left to right and top to bottom,

I want to put this into an array, where the info is read from left to right, but from bottom to top .

Lets say the width is fixed. My pseudocode. I;ll try compiling and [put actual code soon

int inputArray[1000];
int outputArray[1000]

int width = 5;

int in_index = max_size-width;

do{
for(j=0; j<width; j++)
{
outputArray[outindex] = inputArray[inindex];
}

in_index = in_index-width;

}
while(in_index > = 0)