Convert image into useable byte array in C?

后端 未结 6 969
半阙折子戏
半阙折子戏 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:29

    Check out the source code for wxImage in the wxWidgets GUI Framework. You will most likely be interested in the *nix distribution.

    Another alternative is the GNU Jpeg library.

提交回复
热议问题