Share via


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;

Parameter

  • hdc [in, optional]
    A handle to the optional device context used to create a compatible memory DC (device context).

  • width
    The width of the bitmap render target.

  • height
    The height of the bitmap render target.

  • renderTarget [out]
    When this method returns, contains an address of a pointer to the newly created IDWriteBitmapRenderTarget object.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Anforderungen

Mindestens unterstützter Client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Mindestens unterstützter Server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteGdiInterop