ISoftwareBitmapNativeFactory::CreateFromWICBitmap method (windows.graphics.imaging.interop.h)

Creates a Windows Runtime SoftwareBitmap object from the provided IWICBitmap.

Syntax

HRESULT CreateFromWICBitmap(
  [in]  IWICBitmap *data,
  [in]  BOOL       forceReadOnly,
  [in]  REFIID     riid,
  [out] LPVOID     *ppv
);

Parameters

[in] data

Type: IWICBitmap*

The source WIC bitmap.

[in] forceReadOnly

Type: BOOL

A value indicating whether the created software bitmap is read-only.

Note  The read-only access applies only to the Windows Runtime SoftwareBitmap object. Access to the underlying WIC bitmap is not restricted.

[in] riid

Type: REFIID

The interface to obtain from the created SoftwareBitmap object. This is usually Windows.Graphics.Imaging.ISoftwareBitmap.

[out] ppv

Type: LPVOID*

When this method returns successfully, contains the requested interface.

Return value

Type: HRESULT

Returns S_OK on successful completion.

Requirements

Requirement Value
Target Platform Windows
Header windows.graphics.imaging.interop.h
Library Windows.graphics.imaging.interop.lib
DLL Windows.graphics.imaging.interop.dll

See also

ISoftwareBitmapNativeFactory