1CImageATL之元件包裝成MFC的形式來使用,支援的形式包括bmpjpgpnggif

2、必須include “atlimage.h”才可使用

3CImage::bool Draw(pDC->m_hDC,ShowRect):顯現圖形在DC上。

4CImage::int GetHeight( ):擷取目前影像的高度 (以像素為單位)

5CImage::COLORREF GetPixel(int x,int y ):在(x,y) 位置的像素色彩。

6CImage::int GetWidth( ):擷取目前影像的寬度 (以像素為單位)

7CImage::bool IsNull( ):判斷影像是否已載入。

8CImage::Load(LPCTSTR pszFileName ):載入圖片。

9CImage::Save(LPCTSTR pszFileName ):儲存圖片。

10CImage::void SetPixel(int x,int y,COLORREF color):在指定位置設定像素的色彩。

11、CImage::bool Create(int nWidth,int nHeight,int nBPP) 初始新創圖片

12GetRValue(COLORREF color)

       GetGValue(COLORREF color)

       GetBValue(COLORREF color):分別得到此色彩的R.G.B值。

文章標籤
全站熱搜
創作者介紹
創作者 阿洲 的頭像
阿洲

阿洲程式天地

阿洲 發表在 痞客邦 留言(0) 人氣(814)