摘要: 关于流说的够多的了,基本上都是一个德行,这个时候可能查文档会收获更多一些。最近发现把图像文件以流的方式保存和读取蛮有意思的。一、把wxImage转为wxMemoryOutputStream#include <wx/wx.h>#include <wx/mstream.h>wxMemoryOutputStream& Img2Stream(wxString& filename){ wxImage img(filename); wxMemoryOutputStream out; img.SaveFile(out,wxBITMAP_TYPE_JPEG); retu 阅读全文
posted @ 2011-06-30 14:30 高斯山 阅读(1223) 评论(0) 推荐(0) 编辑