TextureBrush::TextureBrush(Image*,WrapMode,constRectF&) method (gdiplusbrush.h)

Creates a TextureBrush object based on an image, a wrap mode, and a defining rectangle.

Syntax

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

Parameters

[in] image

Type: Image*

Pointer to an Image object that contains the bitmap of the image to use.

[in] wrapMode

Type: wrapMode

Element of the WrapMode enumeration that specifies how repeated copies of an image are used to tile an area when it is painted with this texture brush.

[in, ref] dstRect

Type: const RectF

Reference to a rectangle that defines the size of this texture brush and the portion of the image to be used by this texture brush. If the Image object is created from a metafile, the brush uses the entire image, which is scaled to fit the size of the brush.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusbrush.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Brushes and Filled Shapes

Image

Rect

TextureBrush

TextureBrush::GetWrapMode

TextureBrush::SetWrapMode

Using a Brush to Fill Shapes

WrapMode