Convert image into useable byte array in C?

后端 未结 6 972
半阙折子戏
半阙折子戏 2021-01-20 07:04

Does anyone know how to open an image, specifically a jpg, to a byte array in C or C++? Any form of help is appreciated.

Thanks!

6条回答
  •  臣服心动
    2021-01-20 07:31

    The ImageMagick library can do this too, although often it provides enough image manipulation functions that you can do many things without needing to convert the image to a byte array and handle it yourself.

提交回复
热议问题