TextureBrush::TextureBrush (Image*,constRectF&,constImageAttributes*) 方法 (gdiplusbrush.h)

根據影像、定義矩形和一組影像屬性,建立 TextureBrush 物件。

語法

void TextureBrush(
  [in]      Image                 *image,
  [in, ref] const RectF &         dstRect,
  [in]      const ImageAttributes *imageAttributes
);

參數

[in] image

類型: 影像*

Image 物件的指標,其中包含要使用的影像位圖。

[in, ref] dstRect

類型: RectF

定義這個紋理筆刷大小以及這個紋理筆刷所要使用的影像部分的矩形參考。 如果 Image 對像是從元檔建立的,筆刷會使用整個影像來調整以符合筆刷的大小。

[in] imageAttributes

類型: ImageAttributes*

選擇性。 ImageAttributes 物件的指標,其中包含影像的屬性。 預設值是 NULL

傳回值

規格需求

   
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 gdiplusbrush.h (包含 Gdiplus.h)
程式庫 Gdiplus.lib
Dll Gdiplus.dll

另請參閱

筆刷和填滿的圖形

使用影像紋理填滿圖形

映像

ImageAttributes

Rect

TextureBrush