📄 cepicture.h
字号:
// xPicture.h: interface for the xPicture class.
//
//////////////////////////////////////////////////////////////////////
#define IDM_SHOW_NORMAL 40002
#define IDM_SHOW_CENTER 40003
#define IDM_SHOW_STRETCH 40004
#define IDM_SHOW_ISOSTRETCH 40005
#if !defined(AFX_CEPICTURE_H__2ADA9109_32D3_451B_891E_1C8AD7A679B8__INCLUDED_)
#define AFX_CEPICTURE_H__2ADA9109_32D3_451B_891E_1C8AD7A679B8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CEPicture
{
public:
CEPicture();
virtual ~CEPicture();
public:
//HBITMAP Init(HDC hdc,HINSTANCE hInst,LPCTSTR pictureName);
//HBITMAP Init(PTSTR szFileName);
HBITMAP Init(LPCTSTR szFileName);
//void SetHDC(HDC hdc);
//HDC GetHDC();
//void Use();
//void Use(int x,int y);
//void Use(long x,long y,long Width,long Height,long xSrc,long ySrc,long SrcWidth, long nSrcHeight);
//void windowRgn(HWND hwnd,COLORREF TransparentColor);
public:
HBITMAP m_bitmap,m_oldbitmap;
//HDC m_hdc;
BITMAPINFO * pbmi ;
BYTE * pBits ;
int cxDib,cyDib;
BITMAP bitmap;
/*
BitBlt,
StretchBlt
MaskBlt
CreateBitmap
CreateCompatibleBitmap
CreateDIBSection
GetPixel
SetPixel
*/
};
#endif // !defined(AFX_CEPICTURE_H__2ADA9109_32D3_451B_891E_1C8AD7A679B8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -