Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <string>
- #include <Windows.h>
- using namespace std;
- class CBitmap
- {
- public:
- CBitmap( void );
- ~CBitmap( void )
- {
- if ( m_bAllocated )
- for ( int i = 0; i < sizeof(m_pData[0])/sizeof(m_pData[0][0]); i++ )
- delete []m_pData[i];
- delete []m_pData;
- }
- bool Load( string strFileName );
- Color GetColorAt( int x, int y );
- inline int GetWidth( void ) { return m_iWidth; }
- inline int GetHeight( void ){ return m_iHeight;}
- private:
- int m_iWidth, m_iHeight;
- int **m_pData;
- bool m_bAllocated;
- };
Advertisement
Add Comment
Please, Sign In to add comment