MFC中如何read/writebmp文件?

How to read/write bmp file in MFC?

如何在MFC中read/write生成bmp文件? 我做了以下方式。

读取BMP文件

使用了 fread()/fseek()/ftell() 函数

写作

使用了 fwrite() 函数,它正在运行。

请建议在 MFC 中读取/写入 bmp 文件的任何其他方法。

客户端发送bmp文件,服务器读取并保存图片文件。

如果您正在为 Windows 开发,请使用 ATL/MFC CImage class - 它是共享 MFC/ATL class 的一部分es.

这里有一个关于 Bitmaps 的很好的教程。