CRenderTarget Class
A wrapper for ID2D1RenderTarget.
class CRenderTarget : public CObject;
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CRenderTarget object. |
|
The destructor. Called when a render target object is being destroyed. |
Public Methods
Name |
Description |
---|---|
Attaches existing render target interface to the object |
|
Initiates drawing on this render target. |
|
Clears the drawing area to the specified color. |
|
Converts GDI color and alpha values to the D2D1_COLOR_F object. |
|
Creates a new bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target . |
|
Deletes one or more resources |
|
Detaches render target interface from the object |
|
Draws the formatted text described by the specified IDWriteTextLayout object. |
|
Draws the outline of the specified ellipse using the specified stroke style. |
|
Draws the outline of the specified geometry using the specified stroke style. |
|
Draws the specified glyphs. |
|
Draws a line between the specified points using the specified stroke style. |
|
Draws the outline of a rectangle that has the specified dimensions and stroke style. |
|
Draws the outline of the specified rounded rectangle using the specified stroke style. |
|
Draws the specified text using the format information provided by an IDWriteTextFormat object. |
|
Draws the formatted text described by the specified IDWriteTextLayout object. |
|
Ends drawing operations on the render target and indicates the current error state and associated tags. |
|
Paints the interior of the specified ellipse. |
|
Paints the interior of the specified geometry. |
|
Paints the interior of the specified mesh. |
|
Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target. |
|
Paints the interior of the specified rectangle. |
|
Paints the interior of the specified rounded rectangle. |
|
Executes all pending drawing commands. |
|
Retrieves the current antialiasing mode for nontext drawing operations. |
|
Returns the render target's dots per inch (DPI) |
|
Gets the maximum size, in device-dependent units (pixels), of any one bitmap dimension supported by the render target |
|
Retrieves the pixel format and alpha mode of the render target |
|
Returns the size of the render target in device pixels |
|
Returns ID2D1RenderTarget interface |
|
Returns the size of the render target in device-independent pixels |
|
Gets the label for subsequent drawing operations. |
|
Gets the current antialiasing mode for text and glyph drawing operations. |
|
Retrieves the render target's current text rendering options. |
|
Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space. |
|
Indicates whether the render target supports the specified properties |
|
Checks resource validity |
|
Removes the last axis-aligned clip from the render target. After this method is called, the clip is no longer applied to subsequent drawing operations. |
|
Stops redirecting drawing operations to the layer that is specified by the last PushLayer call. |
|
Removes the last axis-aligned clip from the render target. After this method is called, the clip is no longer applied to subsequent drawing operations. |
|
Adds the specified layer to the render target so that it receives all subsequent drawing operations until PopLayer is called. |
|
Sets the render target's drawing state to that of the specified ID2D1DrawingStateBlock. |
|
Saves the current drawing state to the specified ID2D1DrawingStateBlock. |
|
Sets the antialiasing mode of the render target. The antialiasing mode applies to all subsequent drawing operations, excluding text and glyph drawing operations. |
|
Sets the dots per inch (DPI) of the render target. |
|
Specifies a label for subsequent drawing operations. |
|
Specifies the antialiasing mode to use for subsequent text and glyph drawing operations. |
|
Specifies text rendering options to be applied to all subsequent text and glyph drawing operations. |
|
Overloaded. Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space. |
Protected Methods
Name |
Description |
---|---|
Verifies CD2DResource object validity; creates the object if it didn't already exist. |
Public Operators
Name |
Description |
---|---|
Returns ID2D1RenderTarget interface |
Protected Data Members
Name |
Description |
---|---|
A list of pointers to CD2DResource objects. |
|
A pointer to an ID2D1RenderTarget object. |
|
A pointer to CD2DTextFormat object that contains a default text format. |
Inheritance Hierarchy
Requirements
Header: afxrendertarget.h