-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageFrame.h
More file actions
38 lines (32 loc) · 1.09 KB
/
ImageFrame.h
File metadata and controls
38 lines (32 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ImageFrame.h: interface for the CImageFrame class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_IMAGEFRAME_H__9BDE26E2_0C88_11D4_82FC_000021DE7A53__INCLUDED_)
#define AFX_IMAGEFRAME_H__9BDE26E2_0C88_11D4_82FC_000021DE7A53__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "cdib.h"
#include "ZoomInfo.h"
class CImageFrame : public CDib
{
public:
int GetColorTableEntry();
CImageFrame(CSize imagesize, CSize framesize, CRect region, bool );
void SetMemPointer(LPBYTE p);
bool ReadCustom(CFile* f);
bool WriteCustom(CFile* f, CSize sizeimage);
CRect InterSect(CRect a, CRect b);
bool IsConcerned(CRect source);
bool PtInRegion(CPoint p);
void DrawRegion(CDC* dc, CRect dest, CRect source);
void DrawRegion(CDC* dc, CRect dest, CRect source, DWORD);
CRect GetRegion();
void SetRegion(CRect rect);
CImageFrame();
virtual ~CImageFrame();
private:
CSize m_szFrameSize; // origin & size
CRect m_rcRegion; // absolute coordinates
};
#endif // !defined(AFX_IMAGEFRAME_H__9BDE26E2_0C88_11D4_82FC_000021DE7A53__INCLUDED_)