Rotating an image in C/C++

后端 未结 5 1020
傲寒
傲寒 2020-12-18 05:49

I need code for rotating an image in C++ which functions like imrotate function of matlab. Please suggest a good link. Or if someone can provide the code for imrotate.

5条回答
  •  余生分开走
    2020-12-18 06:17

    There is no built-in way of accomplishing this in C++, short of writing your own function for manipulating binary data, which yields other problems like "How do I decompress a jpg/png in C++?"

    Your best bet is a 3rd party graphics library such as libSDL

提交回复
热议问题