I tried using bubble sort for Reflect, it goes something like this
pretend I defined temp here for (int i = 0; i = height; i++) for (int j = 0; j = width - 1; j++) for (int k = 0; k = width - 1; k++) temp = image[i][k+1]; image[i][k+1] = image[i][k]; image[i][k] = image[i][k+1];
It should basically bubble sort in a way that the image will reflect. Why is the image still unchanged?