共用方式為


CD2DBitmap Class

A wrapper for ID2D1Bitmap.

class CD2DBitmap : public CD2DResource;

Members

Public Constructors

Name

Description

CD2DBitmap::CD2DBitmap

Overloaded. Constructs a CD2DBitmap object from HBITMAP.

CD2DBitmap::~CD2DBitmap

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

Protected Constructors

Name

Description

CD2DBitmap::CD2DBitmap

Overloaded. Constructs a CD2DBitmap object.

Public Methods

Name

Description

CD2DBitmap::Attach

Attaches existing resource interface to the object

CD2DBitmap::CopyFromBitmap

Copies the specified region from the specified bitmap into the current bitmap

CD2DBitmap::CopyFromMemory

Copies the specified region from memory into the current bitmap

CD2DBitmap::CopyFromRenderTarget

Copies the specified region from the specified render target into the current bitmap

CD2DBitmap::Create

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

CD2DBitmap::Destroy

Destroys a CD2DBitmap object. (Overrides CD2DResource::Destroy.)

CD2DBitmap::Detach

Detaches resource interface from the object

CD2DBitmap::Get

Returns ID2D1Bitmap interface

CD2DBitmap::GetDPI

Return the dots per inch (DPI) of the bitmap

CD2DBitmap::GetPixelFormat

Retrieves the pixel format and alpha mode of the bitmap

CD2DBitmap::GetPixelSize

Returns the size, in device-dependent units (pixels), of the bitmap

CD2DBitmap::GetSize

Returns the size, in device-independent pixels (DIPs), of the bitmap

CD2DBitmap::IsValid

Checks resource validity (Overrides CD2DResource::IsValid.)

Protected Methods

Name

Description

CD2DBitmap::CommonInit

Initializes the object

Public Operators

Name

Description

CD2DBitmap::operator ID2D1Bitmap*

Returns ID2D1Bitmap interface

Protected Data Members

Name

Description

CD2DBitmap::m_bAutoDestroyHBMP

TRUE if m_hBmpSrc should be destroyed; otherwise FALSE.

CD2DBitmap::m_hBmpSrc

Source bitmap handle.

CD2DBitmap::m_lpszType

Resource type.

CD2DBitmap::m_pBitmap

Stores a pointer to an ID2D1Bitmap object.

CD2DBitmap::m_sizeDest

Bitmap destination size.

CD2DBitmap::m_strPath

Botmap file path.

CD2DBitmap::m_uiResID

Bitmap resource ID.

Inheritance Hierarchy

CObject

CD2DResource

CD2DBitmap

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes