ID2D1Bitmap1::GetSourceStream method

Gets any image stream that is associated with the bitmap.

Syntax


void GetSourceStream(
  [out, optional]  IStream **Stream
) const;

Parameters

Stream [out, optional]

Type: IStream**

When this method returns, contains the address of a pointer to the stream associated with the bitmap, if present.

Return value

This method does not return a value.

Remarks

This method will return a stream if the input bitmap is created with ID2D1RenderTarget::CreateBitmapFromWicBitmap and the input bitmap source is a decoder without any subsequent IWICBitmapSource transforms. This can be used to recover the original image file that was used to create the bitmap. Otherwise, this method will return NULL.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1.h

DLL

D2d1.dll

See also

ID2D1Bitmap1
ID2D1RenderTarget::CreateSharedBitmap
ID2D1DeviceContext::CreateBitmapFromDxgiSurface
ID2D1DeviceContext::CreateBitmap

 

 

Community Additions

ADD
Show:
© 2014 Microsoft