CD2DBitmapBrush::CD2DBitmapBrush
建構 CD2DBitmapBrush 物件。
CD2DBitmapBrush(
CRenderTarget* pParentTarget,
D2D1_BITMAP_BRUSH_PROPERTIES* pBitmapBrushProperties = NULL,
CD2DBrushProperties* pBrushProperties = NULL,
BOOL bAutoDestroy = TRUE
);
CD2DBitmapBrush(
CRenderTarget* pParentTarget,
UINT uiResID,
LPCTSTR lpszType = NULL,
CD2DSizeU sizeDest = CD2DSizeU(0,
0),
D2D1_BITMAP_BRUSH_PROPERTIES* pBitmapBrushProperties = NULL,
CD2DBrushProperties* pBrushProperties = NULL,
BOOL bAutoDestroy = TRUE
);
CD2DBitmapBrush(
CRenderTarget* pParentTarget,
LPCTSTR lpszImagePath,
CD2DSizeU sizeDest = CD2DSizeU(0,
0),
D2D1_BITMAP_BRUSH_PROPERTIES* pBitmapBrushProperties = NULL,
CD2DBrushProperties* pBrushProperties = NULL,
BOOL bAutoDestroy = TRUE
);
參數
pParentTarget
轉譯目標的指標。pBitmapBrushProperties
點陣圖筆刷之擴充模式及插補模式的指標。pBrushProperties
筆刷之不透明度及轉換的指標。bAutoDestroy
表示物件將會由其擁有者 (pParentTarget) 終結。uiResID
資源的資源 ID 編號。lpszType
以 Null 結束的字串的指標,這個字串包含資源類型。sizeDest
點陣圖的目的地大小。lpszImagePath
以 Null 結束之字串的指標,該字串包含檔案的名稱。
需求
**標頭檔:**afxrendertarget.h