IUIX_Inst::CreateImageFromFile2 Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
{{#customTitle:IUIX_Inst::CreateImageFromFile2 Method}} | {{#customTitle:IUIX_Inst::CreateImageFromFile2 Method}} | ||
{{#parentPage:PXV:IUIX_Inst#Methods|CreateImageFromFile2|method}} | {{#parentPage:PXV:IUIX_Inst#Methods|CreateImageFromFile2|method}} | ||
− | + | ||
Creates new ''image'' object of [[PXV:IUIX_ImageData|IUIX_ImageData]] data interface from image file. | Creates new ''image'' object of [[PXV:IUIX_ImageData|IUIX_ImageData]] data interface from image file. | ||
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT CreateImageFromFile2([in] BSTR | + | <pre class="brush:cpp;gutter:false">HRESULT CreateImageFromFile2([in] BSTR sSourceFileName, |
− | [out, retval] IUIX_ImageData** | + | [out, retval] IUIX_ImageData** pImage);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;sSourceFileName |
:[in] path to image file. | :[in] path to image file. | ||
− | ; | + | ;pImage |
:[out, retval] return object of [[PXV:IUIX_ImageData|IUIX_ImageData]] interface. | :[out, retval] return object of [[PXV:IUIX_ImageData|IUIX_ImageData]] interface. | ||
== Return Value == | == Return Value == | ||
− | Returns S_OK if operation was successful or error code | + | Returns S_OK if the operation was successful, or will return an error code if it fails. |
== See Also == | == See Also == | ||
[[PXV:IUIX_Inst|IUIX_Inst]] | [[PXV:IUIX_Inst|IUIX_Inst]] |
Latest revision as of 08:58, 16 June 2015
Creates new image object of IUIX_ImageData data interface from image file.
Syntax
HRESULT CreateImageFromFile2([in] BSTR sSourceFileName, [out, retval] IUIX_ImageData** pImage);
Parameters
- sSourceFileName
- [in] path to image file.
- pImage
- [out, retval] return object of IUIX_ImageData interface.
Return Value
Returns S_OK if the operation was successful, or will return an error code if it fails.