#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); };