IPXC_Document::AddImageFromStream Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
Line 18: | Line 18: | ||
;nPage | ;nPage | ||
:[in, defaultvalue(0)] Specifies zero-based page index into the images specified by ''pStream''. | :[in, defaultvalue(0)] Specifies zero-based page index into the images specified by ''pStream''. | ||
− | ; | + | ;nFlags |
:[in, defaultvalue(0)] Specifies additional [[PXV:PXC_ImageToXObjectFlags|flags]] of image creation. | :[in, defaultvalue(0)] Specifies additional [[PXV:PXC_ImageToXObjectFlags|flags]] of image creation. | ||
;ppImage | ;ppImage |
Revision as of 23:05, 25 May 2015
Adds new image to the document from IStream
source.
Syntax
HRESULT AddImageFromStream([in] IStream* pStream, [in, defaultvalue(0)] ULONG nPage, [in, defaultvalue(0)] ULONG nFlags, [out, retval] IPXC_Image** ppImage);
Parameters
- pStream
- [in] Pointer to
IStream
that contains image data in one of supported image file formats. - nPage
- [in, defaultvalue(0)] Specifies zero-based page index into the images specified by pStream.
- nFlags
- [in, defaultvalue(0)] Specifies additional flags of image creation.
- ppImage
- [out, retval] Returns an IPXC_Image object of newly created image.
Return Value
Returns S_OK if operation was successful or error code in other cases.