ID2D1BitmapBrush::SetBitmap method

Specifies the bitmap source that this brush uses to paint.

Syntax


virtual void SetBitmap(
  [in]  ID2D1Bitmap *bitmap
) = 0;

Parameters

bitmap [in]

Type: ID2D1Bitmap*

The bitmap source used by the brush.

Return value

This method does not return a value.

Remarks

This method specifies the bitmap source that this brush uses to paint. The bitmap is not resized or rescaled automatically to fit the geometry that it fills. The bitmap stays at its native size. To resize or translate the bitmap, use the SetTransform method to apply a transform to the brush.

The native size of a bitmap is the width and height in bitmap pixels, divided by the bitmap DPI. This native size forms the base tile of the brush. To tile a subregion of the bitmap, you must generate a new bitmap containing this subregion and use SetBitmap to apply it to the brush.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1BitmapBrush

 

 

Community Additions

ADD
Show:
© 2014 Microsoft