12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include "HJHomework.h"
- class CImageEx : public Image
- {
- public:
- CImageEx(){};
- CImageEx(IN const WCHAR* filename,IN BOOL useEmbeddedColorManagement = FALSE);
- CImageEx(IN IStream* stream,IN BOOL useEmbeddedColorManagement = FALSE);
- virtual ~CImageEx();
- // 功能函数
- public:
- BOOL IsNull();
- public:
- //绘画图像
- bool DrawImage(CDC * pDC, INT nXPos, INT nYPos);
- //绘画图像
- bool DrawImage(CDC * pDC, INT nXPos, INT nYPos, INT nDestWidth, INT nDestHeight);
- //绘画图像
- bool DrawImage(CDC * pDC, RECT &rc);
- //绘画图像
- bool DrawImage(CDC * pDC, INT nXDest, INT nYDest, INT nDestWidth, INT nDestHeight, INT nXScr, INT nYSrc);
- //绘画图像
- bool DrawImage(CDC * pDC, INT nXDest, INT nYDest, INT nDestWidth, INT nDestHeight, INT nXScr, INT nYSrc, INT nSrcWidth, INT nSrcHeight);
- };
|