ImageEx.h 799 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "HJHomework.h"
  3. class CImageEx : public Image
  4. {
  5. public:
  6. CImageEx(){};
  7. CImageEx(IN const WCHAR* filename,IN BOOL useEmbeddedColorManagement = FALSE);
  8. CImageEx(IN IStream* stream,IN BOOL useEmbeddedColorManagement = FALSE);
  9. virtual ~CImageEx();
  10. // 功能函数
  11. public:
  12. BOOL IsNull();
  13. public:
  14. //绘画图像
  15. bool DrawImage(CDC * pDC, INT nXPos, INT nYPos);
  16. //绘画图像
  17. bool DrawImage(CDC * pDC, INT nXPos, INT nYPos, INT nDestWidth, INT nDestHeight);
  18. //绘画图像
  19. bool DrawImage(CDC * pDC, RECT &rc);
  20. //绘画图像
  21. bool DrawImage(CDC * pDC, INT nXDest, INT nYDest, INT nDestWidth, INT nDestHeight, INT nXScr, INT nYSrc);
  22. //绘画图像
  23. bool DrawImage(CDC * pDC, INT nXDest, INT nYDest, INT nDestWidth, INT nDestHeight, INT nXScr, INT nYSrc, INT nSrcWidth, INT nSrcHeight);
  24. };