karansher / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 0 forks source link

Potential mistype in main.cpp for rotate #59

Closed leenlab2 closed 1 year ago

leenlab2 commented 1 year ago

Hi,

In main.cpp, we make the following call on line 52 write_ppm("rotated.ppm",rotated,height,width,3);

This violates the specifications of write_ppm, as height and width are swapped, and was leading me to get some very warped-looking output. Am I allowed to edit main.cpp to fix this?

leenlab2 commented 1 year ago

Oops - my bad, I was doing something wrong I think. They should be swapped because it becomes swapped when you rotate it.