-
Notifications
You must be signed in to change notification settings - Fork 0
/
BackgroundAlphaTexture.h
executable file
·45 lines (33 loc) · 1.38 KB
/
BackgroundAlphaTexture.h
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
// BackgroundAlphaTexture.h: interface for the CBackgroundAlphaTexture class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BACKGROUNDALPHATEXTURE_H__E546AFC9_7256_4401_B627_F28CBBD07DCC__INCLUDED_)
#define AFX_BACKGROUNDALPHATEXTURE_H__E546AFC9_7256_4401_B627_F28CBBD07DCC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GraphicsObject.h"
#include "RenderDC.h"
#include "StyleTemplate.h"
#include <Gdiplus.h>
class CBackgroundAlphaTexture : public CGraphicsObject
{
DECLARE_SERIAL (CBackgroundAlphaTexture)
public:
CBackgroundAlphaTexture();
CBackgroundAlphaTexture(CString strImgFilename, int nAlphaFormat, int nSourceConstantAlpha);
virtual ~CBackgroundAlphaTexture();
bool operator== (CBackgroundAlphaTexture& bi);
bool operator!= (CBackgroundAlphaTexture& bi);
virtual void Render (CDC* pDC, HANDLE hndPrinter, CRect r, bool bIsPrinting);
virtual void Serialize (CArchive& ar);
inline CString GetImageFilename () { return m_strImgFilename; }
inline bool IsImgFilenameChanged () { return m_bImgFilenameChanged; }
int m_nSourceConstantAlpha;
int m_nAlphaFormat;
protected:
CString m_strImgFilename;
Gdiplus::Bitmap* m_pBitmap;
bool m_bImgFilenameChanged;
};
#endif // !defined(AFX_BACKGROUNDALPHATEXTURE_H__E546AFC9_7256_4401_B627_F28CBBD07DCC__INCLUDED_)