Share via


TextureBrush.TextureBrush(Image*, RectF, ImageAttributes*) constructor

Applies to: desktop apps only

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

Syntax

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

Parameters

  • image [in]
    Type: Image*

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

  • dstRect [in, ref]
    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.

  • imageAttributes [in]
    Type: ImageAttributes*

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

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusbrush.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

TextureBrush

Image

ImageAttributes

Rect

Filling a Shape with an Image Texture

Brushes and Filled Shapes

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012