Convert image into useable byte array in C?

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

    You could try the DevIL Image Library I've only used it in relation to OpenGL related things, but it also functions as just a plain image loading library.

提交回复
热议问题