ID2D1DeviceContext::CreateDrawingStateBlock method
[This documentation is preliminary and is subject to change.]
Applies to: desktop apps only
Creates a ID2D1DrawingStateBlock1 object.
Syntax
HRESULT CreateDrawingStateBlock(
[in, optional] D2D1_DRAWING_STATE_DESCRIPTION1 *,
[in, optional] IDWriteRenderingParams textRenderingParams,
[out] ID2D1DrawingStateBlock1 **drawingStateBlock1
);
Parameters
** [in, optional]
The drawing state description.textRenderingParams [in, optional]
Text rendering settings such as ClearType level, enhanced contrast, and gamma correction for glyph rasterization and filtering.drawingStateBlock1 [out]
The address of the newly created drawing state object.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| HRESULT | Description |
|---|---|
| S_OK | No error occurred. |
| E_OUTOFMEMORY | Direct2D could not allocate sufficient memory to complete the call. |
| E_INVALIDARG | An invalid value was passed to the method. |
See also
Build date: 3/7/2012