共用方式為


CBitmapRenderTarget 類別

ID2D1BitmapRenderTarget 的包裝函式。

語法

class CBitmapRenderTarget : public CRenderTarget;

成員

公用建構函式

名稱 描述
CBitmapRenderTarget::CBitmapRenderTarget 建構 CBitmapRenderTarget 物件。

公用方法

名稱 描述
CBitmapRenderTarget::Attach 將現有的轉譯目標介面附加至 物件
CBitmapRenderTarget::D etach 從物件中斷鏈接轉譯目標介面
CBitmapRenderTarget::GetBitmap 擷取這個轉譯目標的點陣圖。 傳回的點陣圖可用於繪圖作業。
CBitmapRenderTarget::GetBitmapRenderTarget 傳回ID2D1BitmapRenderTarget介面

公用運算子

名稱 描述
CBitmapRenderTarget::operator ID2D1BitmapRenderTarget* 傳回ID2D1BitmapRenderTarget介面

受保護的資料成員

名稱 描述
CBitmapRenderTarget::m_pBitmapRenderTarget ID2D1BitmapRenderTarget 對象的指標。

繼承階層架構

CObject

CRenderTarget

CBitmapRenderTarget

需求

標頭: afxrendertarget.h

CBitmapRenderTarget::Attach

將現有的轉譯目標介面附加至 物件

void Attach(ID2D1BitmapRenderTarget* pTarget);

參數

pTarget
現有的轉譯目標介面。 不可以是 NULL

CBitmapRenderTarget::CBitmapRenderTarget

建構 CBitmapRenderTarget 物件。

CBitmapRenderTarget();

CBitmapRenderTarget::D etach

從物件中斷鏈接轉譯目標介面

ID2D1BitmapRenderTarget* Detach();

傳回值

卸離轉譯目標介面的指標。

CBitmapRenderTarget::GetBitmap

擷取這個轉譯目標的點陣圖。 傳回的點陣圖可用於繪圖作業。

BOOL GetBitmap(CD2DBitmap& bitmap);

參數

點陣圖
當這個方法傳回時,包含這個轉譯目標的有效點陣圖。 此點陣圖可用於繪圖作業。

傳回值

如果方法成功,則會傳回 TRUE。 否則會傳回 FALSE。

CBitmapRenderTarget::GetBitmapRenderTarget

傳回ID2D1BitmapRenderTarget介面

ID2D1BitmapRenderTarget* GetBitmapRenderTarget();

傳回值

如果物件尚未初始化,則為ID2D1BitmapRenderTarget介面的指標或 NULL。

CBitmapRenderTarget::m_pBitmapRenderTarget

ID2D1BitmapRenderTarget 對象的指標。

ID2D1BitmapRenderTarget* m_pBitmapRenderTarget;

CBitmapRenderTarget::operator ID2D1BitmapRenderTarget*

傳回ID2D1BitmapRenderTarget介面

operator ID2D1BitmapRenderTarget*();

傳回值

如果物件尚未初始化,則為ID2D1BitmapRenderTarget介面的指標或 NULL。

另請參閱

類別