ID2D1Bitmap1::GetSourceStream method
Gets any image stream that is associated with the bitmap.
void GetSourceStream(
[out, optional] IStream **Stream
) const;
Stream [out, optional]
Type: IStream**When this method returns, contains the address of a pointer to the stream associated with the bitmap, if present.
This method does not return a value.
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.
Minimum supported client |
Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps] |
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
Header |
D2d1_1.h |
DLL |
D2d1.dll |
ID2D1RenderTarget::CreateSharedBitmap