ID2D1DeviceContext::CreateBitmapFromWicBitmap method

Creates an ID2D1Bitmap by copying the specified Microsoft Windows Imaging Component (WIC) bitmap.

Syntax

HRESULT CreateBitmapFromWicBitmap(
  IWICBitmapSource *wicBitmapSource,
  ID2D1Bitmap1     **bitmap
);

Parameters

wicBitmapSource

Type: IWICBitmapSource*

The WIC bitmap to copy.

bitmap

Type: ID2D1Bitmap1**

When this method returns, contains a pointer to a pointer to the new bitmap. This parameter is passed uninitialized.

Return Value

Type: HRESULT

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

Requirements

   
Target Platform Windows
Header d2d1_1.h (include D2d1_1.h)
Library D2d1_3.lib
DLL D2d1_3.dll

See Also

ID2D1DeviceContext