Function BlamRendering::DirectX::WIC::ConvertWICBitmapToD2D(IWICBitmap *, ID2D1Bitmap **, ID2D1RenderTarget *)

Function Documentation

HRESULT BlamRendering::DirectX::WIC::ConvertWICBitmapToD2D(IWICBitmap *wic_bitmap, ID2D1Bitmap **d2d_bitmap, ID2D1RenderTarget *render_target)

Converts a WIC bitmap to a D2D bitmap, with a specific render target.

Return

S_OK if the bitmap was converted successfully, otherwise will return an error code.

Parameters
  • wic_bitmap: - The WIC bitmap to convert.

  • d2d_pointer: - Pointer to the D2D bitmap to load the converted bitmap into.

  • render_target: - The render target that this bitmap will be displayed with.