IPXC_Document::AddImageFromStream Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
m (Automatic page editing by robot) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IPXC_Document::AddImageFromStream Method}} | {{#customTitle:IPXC_Document::AddImageFromStream Method}} | ||
+ | {{#parentPage:PXV:IPXC_Document#Methods|AddImageFromStream|method}} | ||
+ | {{ToReview}} | ||
− | + | Adds new image to the document from <code>IStream</code> source. | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT AddImageFromStream([in] IStream* pStream, [in, defaultvalue(0)] ULONG nPage, [in, defaultvalue(0)] ULONG nFlags, [out, retval] IPXC_Image** | + | <pre class="brush:cpp;gutter:false">HRESULT AddImageFromStream([in] IStream* pStream, |
+ | [in, defaultvalue(0)] ULONG nPage, | ||
+ | [in, defaultvalue(0)] ULONG nFlags, | ||
+ | [out, retval] IPXC_Image** pImage);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;pStream |
− | :[in] | + | :[in] Pointer to <code>IStream</code> that contains image data in one of supported image file formats. |
− | ; | + | ;nPage |
− | :[in, defaultvalue(0)] | + | :[in, defaultvalue(0)] Specifies zero-based page index into the images specified by ''pStream''. |
− | + | ;nFlags | |
− | :[in, defaultvalue(0)] | + | :[in, defaultvalue(0)] Specifies additional [[PXV:PXC_ImageToXObjectFlags|flags]] of image creation. |
− | ; | + | ;pImage |
− | :[out, retval] | + | :[out, retval] Returns an [[PXV:IPXC_Image|IPXC_Image]] object of newly created image. |
== Return Value == | == Return Value == | ||
− | Returns S_OK if operation was successful or error code in other cases. | + | Returns <tt>S_OK</tt> if operation was successful or error code in other cases. |
== See Also == | == See Also == | ||
− | + | [[PXV:IPXC_Document|IPXC_Document]] |
Latest revision as of 02:24, 15 June 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** pImage);
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.
- pImage
- [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.