ID2D1Factory::CreateWicBitmapRenderTarget methods

Creates a render target that renders to a Microsoft Windows Imaging Component (WIC) bitmap.

Overload list

Method Description
CreateWicBitmapRenderTarget(IWICBitmap*,D2D1_RENDER_TARGET_PROPERTIES*,ID2D1RenderTarget**) Creates a render target that renders to a Microsoft Windows Imaging Component (WIC) bitmap.
CreateWicBitmapRenderTarget(IWICBitmap*,D2D1_RENDER_TARGET_PROPERTIES&,ID2D1RenderTarget**) Creates a render target that renders to a Microsoft Windows Imaging Component (WIC) bitmap.

Remarks

Your application should create render targets once and hold onto them for the life of the application or until the D2DERR_RECREATE_TARGET error is received. When you receive this error, you need to recreate the render target (and any resources it created).

Note This method isn't supported on Windows Phone and will fail when called on a device with error code 0x8899000b ( There is no hardware rendering device available for this operation ). Because the Windows Phone Emulator supports WARP rendering, this method will fail when called on the emulator with a different error code, 0x88982f80 (wincodec_err_unsupportedpixelformat).

Requirements

Requirement Value
Library
D2d1.lib
DLL
D2d1.dll

See also

ID2D1Factory