bmp 做成 avi 想把一系列bmp图片做成avi视频,请教用vc怎么做? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://dev.yesky.com/374/2304874.shtml网上有现成的!http://zhidao.baidu.com/question/111990069 这里面还有代码! #include <vfw.h>#define TEXT_HEIGHT 20#define AVIIF_KEYFRAME 0x00000010L // this frame is a key frame.#define BUFSIZE 260class CAVIFile : public CObject{public: CAVIFile(LPCTSTR lpszFileName, int xdim = -1, int ydim = -1); virtual ~CAVIFile(); virtual bool AddFrame(CBitmap& bmp); CString GetFName() const {return FName;}; virtual bool IsOK() const {return bOK;};private: CString FName; int xDim; int yDim; AVISTREAMINFO strhdr; PAVIFILE pfile; PAVISTREAM ps; PAVISTREAM psCompressed; PAVISTREAM psText; AVICOMPRESSOPTIONS opts; AVICOMPRESSOPTIONS FAR * aopts[1]; DWORD dwTextFormat; char szText[BUFSIZE]; int nFrames; bool bOK;}; http://topic.okbase.net/200905/2009050116/3624712.html 看到那个代码了 可是运行时错误 调试时到hr = AVIFileCreateStream(pfile,&ps,&strhdr);出错 不知为什么 去网上下个最新版的XVID来安装,重启编译器,重新运行程序,应该就OK了这是里面的原话! opencv不超过10行代码直接就有范例的 Hook 识别组合键 vc 列表视图控件如何锁定列 VC调试dmp文件时,是否有选项加载时间戳不对的PDB? 如何在向ListCtrl添加ITEM时默认选中一行? 电子白板?有兴趣一起研究啊??? 数据库事务处理的问题 The thread 0x5CC has exited with code 0 (0x0). 是什么问题? 如何在Button上显示一个位图 该闪时不闪,不该闪时狂闪!!!! 如何知道现在运行着几个窗口,包括隐藏的。谢谢 请推荐一个分析包的工具 Winsock和Posix的socket,机制有什么不同吗?
网上有现成的!
http://zhidao.baidu.com/question/111990069 这里面还有代码!
#include <vfw.h>#define TEXT_HEIGHT 20
#define AVIIF_KEYFRAME 0x00000010L // this frame is a key frame.
#define BUFSIZE 260class CAVIFile : public CObject
{
public:
CAVIFile(LPCTSTR lpszFileName, int xdim = -1, int ydim = -1);
virtual ~CAVIFile(); virtual bool AddFrame(CBitmap& bmp);
CString GetFName() const {return FName;};
virtual bool IsOK() const {return bOK;};private:
CString FName;
int xDim;
int yDim; AVISTREAMINFO strhdr;
PAVIFILE pfile;
PAVISTREAM ps;
PAVISTREAM psCompressed;
PAVISTREAM psText;
AVICOMPRESSOPTIONS opts;
AVICOMPRESSOPTIONS FAR * aopts[1];
DWORD dwTextFormat;
char szText[BUFSIZE];
int nFrames;
bool bOK;
};
调试时到hr = AVIFileCreateStream(pfile,&ps,&strhdr);出错
不知为什么
直接就有范例的