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 を含む)
Library Gdiplus.lib
[DLL] Gdiplus.dll

こちらもご覧ください

ブラシと図形の塗りつぶし

イメージ テクスチャを使用して図形を塗りつぶす

Image

ImageAttributes

Rect

Texturebrush