CreateBitmapFromWicBitmap::CreateBitmapFromWicBitmap method

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

Syntax


HRESULT CreateBitmapFromWicBitmap(
  [in]  IWICBitmapSource *wicBitmapSource,
  [out] ID2D1Bitmap1     **bitmap
);

Parameters

wicBitmapSource [in]

Type: IWICBitmapSource*

The WIC bitmap to copy.

bitmap [out]

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

Header

D2d1_3.h

Library

D2d1_3.lib

DLL

D2d1_3.dll

See also

ID2D1DeviceContext

 

 

Show: