IDWriteGdiInterop::CreateBitmapRenderTarget method
Creates an object that encapsulates a bitmap and memory DC (device context) which can be used for rendering glyphs.
Syntax
virtual HRESULT CreateBitmapRenderTarget( [in, optional] HDC hdc, UINT32 width, UINT32 height, [out] IDWriteBitmapRenderTarget ** renderTarget ) = 0;
Parameters
- hdc [in, optional]
-
Type: HDC
A handle to the optional device context used to create a compatible memory DC (device context).
- width
-
Type: UINT32
The width of the bitmap render target.
- height
-
Type: UINT32
The height of the bitmap render target.
- renderTarget [out]
-
Type: IDWriteBitmapRenderTarget**
When this method returns, contains an address of a pointer to the newly created IDWriteBitmapRenderTarget object.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also