文件名称:wince 图片类
文件大小:19KB
文件格式:CPP
更新时间:2015-09-06 11:12:50
wince 图片动画 旋转
class Mov { public: ~Mov(); Mov(); private: public: HRESULT RotateImage(IImagingFactory *pImgFactory, IImage *pImage, IImage * &pImageOut;, LPBYTE &pImageBuf;, double angle);//png图片旋转,任意角度,注意释放pImageBuf void RotateJpg(IImagingFactory * pImagingFactory,IImage *pImage, IImage * &pImageOut;,FLOAT m_RAngle);//JPG旋转 90,180,270 void StrtoIIm(LPCTSTR szImagePathIn,IImage * &pImageOut;);//文件路径转换为IImage接口 BOOL PlayDDB( CDC* pDC, LPCTSTR lpszBitmap);//CBitmap类型显示 BOOL ReShow(IImage *pImageIn, IImage * pImageOut,CRect rect,int i,CWnd* hwnd);//以滑动方式在主表面上更新,In为原图接口 BOOL ReShow(CString pImageIn, CString pImageOut,CRect rect,int sleep,CWnd* hwnd,IImage * BKImg); private: IImagingFactory *pIImgFactory; public: void RotateImageBuf(const BYTE* src, int srcWidth, int srcHeight, BYTE*& dst, int& dstWidth, int& dstHeight, double angle);//数据区变换,png格式 BOOL ReadDIB(CFile* pFile, LPBITMAPINFOHEADER* pLpBMIH, LPBYTE* pLpImage);//设备无关位图数据分离 BOOL DrawDc(CString pImageIn,HDC &dc;,CWnd* hwnd); BOOL DrawDc(IImage *pImageIn,HDC &dc;,CWnd* hwnd); };