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

Creates a TextureBrush object based on an image, a defining rectangle, and a set of image properties.

Syntax

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

Parameters

[in] image

Type: Image*

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

[in, ref] dstRect

Type: 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.

[in] imageAttributes

Type: ImageAttributes*

Optional. Pointer to an ImageAttributes object that contains properties of the image. The default value is NULL.

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

Filling a Shape with an Image Texture

Image

ImageAttributes

Rect

TextureBrush