IDWriteBitmapRenderTarget2::GetBitmapData method (dwrite_3.h)

Retrieves the pixel data from a bitmap render target.

Important

This API is available as part of the DWriteCore implementation of DirectWrite. For more info, and code examples, see DWriteCore overview.

Syntax

HRESULT GetBitmapData(
  DWRITE_BITMAP_DATA_BGRA32 *bitmapData
);

Parameters

bitmapData

Type: _Out_DWRITE_BITMAP_DATA_BGRA32*

A pointer to the pixel data.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples

See the DWriteCore overview topic, and the DWriteCoreGallery sample app.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 (with Windows App SDK 0.5 or later)
Header dwrite_3.h

See also

IDWriteBitmapRenderTarget2

DWriteCore

DWriteCoreGallery sample