将CImage数据与其他一些数据一起保存到二进制文件中 [英] saving CImage data to binary file along with some other data

查看:288
本文介绍了将CImage数据与其他一些数据一起保存到二进制文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我有一个这样定义的结构,

Hello ,
I have an structure defined like this,

struct CellInfo
{
     INT m_nCellNum;
     CPoint m_obCellPos;
     CImage m_obCellImage;
}


m_obCellImage包含外部文件图像的一部分.现在我想将CellInfo数据保存到文件中.我知道如何保存CPoint,INT数据,但是我没有得到如何保存和检索CImage数据以及其他文件的信息.成员.有任何建议.


The m_obCellImage contains a part of external file image.Now i want to save the CellInfo data to a file.I know how to save the CPoint, INT data but i am not getting how to save and retrieve back the CImage data along with the other members.Any suggestions.

推荐答案

您可以尝试 ^ ]方法.
You could try the Save()[^] method.


这篇关于将CImage数据与其他一些数据一起保存到二进制文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆