次の方法で共有


TextureBrush.TextureBrush(Image*, wrapMode, const RectF) constructor

Applies to: desktop apps only

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

Syntax

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

Parameters

  • image [in]
    Type: Image*

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

  • wrapMode [in]
    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.

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

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

TextureBrush::GetWrapMode

Image

Rect

TextureBrush::SetWrapMode

WrapMode

Using a Brush to Fill Shapes

Brushes and Filled Shapes

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012