Function BlamRendering::DirectX::WIC::CreateD2DBitmapFromFile

Function Documentation

HRESULT BlamRendering::DirectX::WIC::CreateD2DBitmapFromFile(std::wstring path, ID2D1Bitmap **bitmap_pointer)

Creates a Direct2D bitmap from a file.

Return

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

Parameters
  • path: - The path to the file to read.

  • bitmap_pointer: - Pointer to the bitmap to load the file into.