VFWImage.h

Go to the documentation of this file.
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();                                          // capture bitmap
00017                 int GDIPaint(HDC hdc,int x,int y);      // Display bitmap
00018                 //int SaveBMP(LPCTSTR fileName);                // Save bitmap
00019                 int SaveToFile(LPCSTR fileName);                // Save bitmap
00020                 wxImage  getWxImage();
00021         Image *getCVIPImage();
00022 
00023         private:
00024                 int Width,Height;               // Dimensions
00025                 char * bmpData;                 // Bits of the Image.
00026                 BITMAPINFO * pbmi;              // BITMAPINFO structure
00027                 ULONG BitmapSize;
00028                 wxImage m_wximage;
00029 };
00030 
00031 
00032 wxImage CVIP2WX(Image *cvipImage);
00033 
00034 #endif

Generated on Wed Nov 29 01:27:42 2006 by  doxygen 1.4.6