I'm working on a program that modifies images. It's a very simple program that uses 2d arrays and all that fun stuff. I'm trying to transpose (rotate it 90 degrees one way), however, when I make that selection (in .exe) the program just hangs... here is my transpose function:
void transpse(Pixel image_mod[][800], int w, int h)
{
Pixel transposed[MAXW][MAXH];
for(int i = 1; i < w; i++)
{
for(int j = 1; j < h; j++)
{
transposed[j][i] = image_mod[i][j];
}
}
for(int i = 1; i < w; i++)
{
for(int j = 1; j < h; j++)
{
image_mod[i][j] = transposed[i][j];
}
}
}
-----------------------------------------------------------------------------
it all seems correct...but it doesn't do anything... Do you guys see anything?? Let me know if you want to see anything else.
SAW