EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

Bitmap.FromStream method

Applies to: desktop apps only

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

Syntax

static Bitmap* FromStream(
  [in]  IStream *stream,
  [in]  BOOL useEmbeddedColorManagement
);

Parameters

stream [in]

Type: IStream*

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

useEmbeddedColorManagement [in]

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

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusheaders.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

Bitmap
Image
Using Images, Bitmaps, and Metafiles
Images, Bitmaps, and Metafiles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Aggiunte alla community

Mostra:
© 2014 Microsoft