Bitmap::FromStream method

The Bitmap::FromStream method creates a Bitmap object based on a stream.

Syntax

Bitmap * FromStream(
  IN IStream *stream,
  IN BOOL    useEmbeddedColorManagement
);

Parameters

stream

Type: IStream*

Pointer to an IStreamCOMCOM interface. The implementation of IStream must include the IStream::Seek, Read, and IStream::Stat methods.

useEmbeddedColorManagement

Type: BOOL

Optional. BOOL value that specifies whether the new Bitmap object applies color correction according to color management information that is embedded in the stream. Embedded information can include International Color Consortium (ICC) profiles, gamma values, and chromaticity information. TRUE specifies that color correction is enabled, and FALSE specifies that color correction is not enabled. The default value is FALSE.

Return Value

Type: Type: Bitmap*

This method returns a pointer to the new Bitmap object.

Requirements

   
Windows version Windows XP, Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See Also

Bitmap

Image

Images, Bitmaps, and Metafiles

Using Images, Bitmaps, and Metafiles