-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImage.h
More file actions
57 lines (50 loc) · 1.61 KB
/
Image.h
File metadata and controls
57 lines (50 loc) · 1.61 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Image.h: interface for the CImage class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_IMAGE_H__9BDE26E1_0C88_11D4_82FC_000021DE7A53__INCLUDED_)
#define AFX_IMAGE_H__9BDE26E1_0C88_11D4_82FC_000021DE7A53__INCLUDED_
#include "ImageFrame.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CImage_WIS
{
public:
void SetPixel(CPoint pt, int n);
void ThreasHold(int n);
void ChangePalette(COLORREF c);
void ClearImage();
void CopyStretch(CRect destRect, CRect sourceRect, byte** ppMem, CPointFloat ptfRotation);
void SaveStretch(CString name, CSize destSize, CRect source, int nDegree);
bool m_bMemAlloc;
CZoomInfo* m_pZoomInfo();
void Decompress(LPBYTE p, int size);
void Compress(LPBYTE p, int size);
void SaveRect(CString name, CRect rect);
void SetLim(int num, int val);
void InitLim();
void SetMemPointer(int num, LPBYTE p);
void SetMemPointer(LPBYTE p);
void CopyImage(LPBYTE p, int start, int end);
LPBYTE GetMemPointer(int num);
int GetWidth();
int GetHeight();
bool Read(CFile* f);
bool Read(CFile* f, int nOffset);
bool Write(CFile* f, bool Bit4Compress);
LPBYTE* GetRectPointer();
int GetPixel(CPoint p);
void Draw(CDC* dc, CRect dest, CRect source);
void Draw(CDC* dc, CRect dest, CRect source, DWORD);
CImage_WIS(int framenum, CSize imagesize, CSize framesize, bool);
CImage_WIS();
virtual ~CImage_WIS();
private:
unsigned char* m_pMemory;
LPBYTE* m_pRectPointer;
CSize m_szFrameSize;
CSize m_szImageSize;
int m_nFrameNum;
CImageFrame** m_pImageFrame;
};
#endif // !defined(AFX_IMAGE_H__9BDE26E1_0C88_11D4_82FC_000021DE7A53__INCLUDED_)