Image scaling and rotating in C/C++

前端 未结 10 1616
情深已故
情深已故 2020-11-29 07:55

What is the best way to scale a 2D image array? For instance, suppose I have an image of 1024 x 2048 bytes, with each byte being a pixel. Each pixel is a grayscale level fro

10条回答
  •  眼角桃花
    2020-11-29 08:19

    There is no simple way of accomplishing this. Neither scaling nor rotating are trivial processes.

    It is therefore advisable to use a 2d imaging library. Magick++ can be an idea as divideandconquer.se point out, but there are others.

提交回复
热议问题