EN
此内容没有您的语言版本,但有英语版本。

IPicture::SaveAsFile method

Saves the picture's data into a stream in the same format that it would save itself into a file. Bitmaps use the BMP file format, metafiles the WMF format, and icons the ICO format.

Syntax


HRESULT SaveAsFile(
  [in]   LPSTREAM pStream,
  [in]   BOOL fSaveMemCopy,
  [out]  LONG *pCbSize
);

Parameters

pStream [in]

A pointer to the stream into which the picture writes its data.

fSaveMemCopy [in]

A flag indicating whether to save a copy of the picture in memory.

pCbSize [out]

Pointer to a variable that receives the number of bytes written into the stream. This value can be NULL, indicating that the caller does not require this information.

Return value

This method supports the standard return values E_FAIL, E_INVALIDARG, and S_OK.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IPicture is defined as 7BF80980-BF32-101A-8BBB-00AA00300CAB

See also

IPicture

 

 

社区附加资源

添加
显示:
© 2014 Microsoft