I have an array of pixel data for an image. The image I am getting is already rotated to 270 degrees. So I am trying to rotate it again by 90 degrees to have the correct ima
You have old_data[rows][cols] and new_data[cols][rows], then:
old_data[rows][cols]
new_data[cols][rows]
for(int i=0; i
This should rotate old_data by 90 degrees CW.