-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPicture.h
47 lines (39 loc) · 1.24 KB
/
Picture.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
46
47
// Picture.h: CPicture クラスのインターフェイス
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PICTURE_H__BF4B7942_87E9_45C1_9331_F8ED886CC75B__INCLUDED_)
#define AFX_PICTURE_H__BF4B7942_87E9_45C1_9331_F8ED886CC75B__INCLUDED_
#include "Dibutils.h" // ClassView によって追加されました。
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Dibutils.h"
#include "IJLWrapper.h"
class CPicture
{
public:
CString GetFileNameString();
CString GetFilePathString();
int GetHeight();
int GetWidth();
void DrawTo( HDC hDC, int nX, int nY );
BOOL Set( const CString& PathNameString = "" );
double GetWide(){ return m_dlWide; }
void SetWide( double dlWide ){ m_dlWide = dlWide; }
int GetBitmapWidth();
int GetBitmapHeight();
public:
CPicture();
virtual ~CPicture();
protected:
CString m_FilePathString;
LPBITMAPINFOHEADER m_lpBitmapInfoHeader; // for JPEG
PDIB m_pDIB; // for DIB
double m_dlWide; // Wide
CBitmap* m_pDefaultBitmap;
protected:
BOOL CopyPictureFile( const CString& PathNameString, CString& CopiedPathNameString );
LPVOID GetBitmapBits();
LPBITMAPINFOHEADER GetBitmapInfoHeader();
};
#endif // !defined(AFX_PICTURE_H__BF4B7942_87E9_45C1_9331_F8ED886CC75B__INCLUDED_)