00001 #ifndef BMPUTILS_H
00002 #define BMPUTILS_H
00003
00004
00005 #include <windows.h>
00006 #include "wx/wx.h"
00007 #include "wx/Image.h"
00008
00009 #include "CVIPtoolsInc.h"
00010
00011 class CVFWImage
00012 {
00013 public:
00014 CVFWImage();
00015 virtual ~CVFWImage();
00016 int Capture();
00017 int GDIPaint(HDC hdc,int x,int y);
00018
00019 int SaveToFile(LPCSTR fileName);
00020 wxImage getWxImage();
00021 Image *getCVIPImage();
00022
00023 private:
00024 int Width,Height;
00025 char * bmpData;
00026 BITMAPINFO * pbmi;
00027 ULONG BitmapSize;
00028 wxImage m_wximage;
00029 };
00030
00031
00032 wxImage CVIP2WX(Image *cvipImage);
00033
00034 #endif