CBitmapRenderTarget Class
A wrapper for ID2D1BitmapRenderTarget.
class CBitmapRenderTarget : public CRenderTarget;
Name | Description |
---|---|
CBitmapRenderTarget::CBitmapRenderTarget | Constructs a CBitmapRenderTarget object. |
Name | Description |
---|---|
CBitmapRenderTarget::Attach | Attaches existing render target interface to the object |
CBitmapRenderTarget::Detach | Detaches render target interface from the object |
CBitmapRenderTarget::GetBitmap | Retrieves the bitmap for this render target. The returned bitmap can be used for drawing operations. |
CBitmapRenderTarget::GetBitmapRenderTarget | Returns ID2D1BitmapRenderTarget interface |
Name | Description |
---|---|
CBitmapRenderTarget::operator ID2D1BitmapRenderTarget* | Returns ID2D1BitmapRenderTarget interface |
Name | Description |
---|---|
CBitmapRenderTarget::m_pBitmapRenderTarget | A pointer to an ID2D1BitmapRenderTarget object. |
CBitmapRenderTarget
Header: afxrendertarget.h
Attaches existing render target interface to the object
void Attach(ID2D1BitmapRenderTarget* pTarget);
pTarget
Existing render target interface. Cannot be NULL
Constructs a CBitmapRenderTarget object.
CBitmapRenderTarget();
Detaches render target interface from the object
ID2D1BitmapRenderTarget* Detach();
Pointer to detached render target interface.
Retrieves the bitmap for this render target. The returned bitmap can be used for drawing operations.
BOOL GetBitmap(CD2DBitmap& bitmap);
bitmap
When this method returns, contains the valid bitmap for this render target. This bitmap can be used for drawing operations.
If the method succeeds, it returns TRUE. Otherwise, it returns FALSE.
Returns ID2D1BitmapRenderTarget interface
ID2D1BitmapRenderTarget* GetBitmapRenderTarget();
Pointer to an ID2D1BitmapRenderTarget interface or NULL if object is not initialized yet.
A pointer to an ID2D1BitmapRenderTarget object.
ID2D1BitmapRenderTarget* m_pBitmapRenderTarget;
Returns ID2D1BitmapRenderTarget interface
operator ID2D1BitmapRenderTarget*();
Pointer to an ID2D1BitmapRenderTarget interface or NULL if object is not initialized yet.