www.pudn.com > 3DEDITOR.rar > IMAGECAPTURE.H
// ImageCapture.h: interface for the CImageCapture class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_IMAGECAPTURE_H__B2FAC87A_5DA2_425E_8717_A7F34F2D0994__INCLUDED_) #define AFX_IMAGECAPTURE_H__B2FAC87A_5DA2_425E_8717_A7F34F2D0994__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #includeclass CImageCapture { public: CImageCapture(); virtual ~CImageCapture(); bool CaptureGLBufferToJPEG(CString filename, int x, int y, int width, int height); bool CaptureGLBufferToPNG(CString filename, int x, int y, int width, int height); bool CaptureGLBufferToBMP(CString filename, int x, int y, int width, int height); int WriteBitmapFile(CString filename, int width, int height, unsigned char *imageData); }; #endif // !defined(AFX_IMAGECAPTURE_H__B2FAC87A_5DA2_425E_8717_A7F34F2D0994__INCLUDED_)