Partager via


CD2DBitmapBrush Class

A wrapper for ID2D1BitmapBrush.

class CD2DBitmapBrush : public CD2DBrush;

Members

Public Constructors

Name

Description

CD2DBitmapBrush::CD2DBitmapBrush

Overloaded. Constructs a CD2DBitmapBrush object from file.

CD2DBitmapBrush::~CD2DBitmapBrush

The destructor. Called when a D2D bitmap brush object is being destroyed.

Public Methods

Name

Description

CD2DBitmapBrush::Attach

Attaches existing resource interface to the object

CD2DBitmapBrush::Create

Creates a CD2DBitmapBrush. (Overrides CD2DResource::Create.)

CD2DBitmapBrush::Destroy

Destroys a CD2DBitmapBrush object. (Overrides CD2DBrush::Destroy.)

CD2DBitmapBrush::Detach

Detaches resource interface from the object

CD2DBitmapBrush::Get

Returns ID2D1BitmapBrush interface

CD2DBitmapBrush::GetBitmap

Gets the bitmap source that this brush uses to paint

CD2DBitmapBrush::GetExtendModeX

Gets the method by which the brush horizontally tiles those areas that extend past its bitmap

CD2DBitmapBrush::GetExtendModeY

Gets the method by which the brush vertically tiles those areas that extend past its bitmap

CD2DBitmapBrush::GetInterpolationMode

Gets the interpolation method used when the brush bitmap is scaled or rotated

CD2DBitmapBrush::SetBitmap

Specifies the bitmap source that this brush uses to paint

CD2DBitmapBrush::SetExtendModeX

Specifies how the brush horizontally tiles those areas that extend past its bitmap

CD2DBitmapBrush::SetExtendModeY

Specifies how the brush vertically tiles those areas that extend past its bitmap

CD2DBitmapBrush::SetInterpolationMode

Specifies the interpolation mode used when the brush bitmap is scaled or rotated

Protected Methods

Name

Description

CD2DBitmapBrush::CommonInit

Initializes the object

Public Operators

Name

Description

CD2DBitmapBrush::operator ID2D1BitmapBrush*

Returns ID2D1BitmapBrush interface

Protected Data Members

Name

Description

CD2DBitmapBrush::m_pBitmap

Stores a pointer to a CD2DBitmap object.

CD2DBitmapBrush::m_pBitmapBrush

Stores a pointer to an ID2D1BitmapBrush object.

CD2DBitmapBrush::m_pBitmapBrushProperties

Bitmap brush properties.

Inheritance Hierarchy

CObject

CD2DResource

CD2DBrush

CD2DBitmapBrush

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes