TextureBrush::TextureBrush (Image*,WrapMode,constRectF&) 方法 (gdiplusbrush.h)
根據影像、包裝模式和定義矩形,建立 TextureBrush 物件。
語法
void TextureBrush(
[in] Image *image,
[in] WrapMode wrapMode,
[in, ref] const RectF & dstRect
);
參數
[in] image
類型: 影像*
Image 物件的指標,其中包含要使用的影像位圖。
[in] wrapMode
類型: wrapMode
WrapMode 列舉的 元素,指定使用這個紋理筆刷繪製影像時,影像的重複複本如何用來並排顯示區域。
[in, ref] dstRect
類型: const RectF
矩形的參考,此矩形定義這個紋理筆刷的大小,以及這個紋理筆刷所要使用的影像部分。 如果 Image 對像是從元檔建立的,筆刷會使用整個影像,縮放以符合筆刷的大小。
傳回值
無
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows XP、Windows 2000 Professional [僅限桌面應用程式] |
最低支援的伺服器 | Windows 2000 Server [僅限桌面應用程式] |
目標平台 | Windows |
標頭 | gdiplusbrush.h (包含 Gdiplus.h) |
程式庫 | Gdiplus.lib |
Dll | Gdiplus.dll |