ImageFile.LoadFile method

Loads the ImageFile object with the specified file.

Syntax

ImageFile.LoadFile( _
  ByVal Filename As BSTR _
) As HRESULT

Parameters

Filename [in]

Type: BSTR

Required. String value.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

For example code, see Display Detailed Image Information in Shared Samples.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

ImageFile

SaveFile