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

 

 

社群新增項目

新增
顯示:
© 2015 Microsoft