简体   繁体   English

如何在MFC中读取/写入bmp文件?

[英]How to read/write bmp file in MFC?

How to read/write bmp file in MFC? 如何在MFC中读取/写入bmp文件? I did following way. 我遵循以下方式。

To read the BMP file 读取BMP文件

Used fread()/fseek()/ftell() function 使用的fread()/ fseek()/ ftell()函数

For writing 为了写作

Used fwrite() function and it is working. 使用了fwrite()函数,它正在工作。

Please suggest any other way doing of reading /writing bmp file in MFC. 请提出任何其他在MFC中读取/写入bmp文件的方法。

Client will send bmp file and server will read and save the image file. 客户端将发送bmp文件,服务器将读取并保存图像文件。

If you're developing for Windows use the ATL/MFC CImage class - it is part of the shared MFC/ATL classes. 如果要为Windows开发,请使用ATL / MFC CImage类-它是共享MFC/ATL类的一部分。

Here is a good tutorial on Bitmaps . 这是有关位图的很好的教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM