GetFileInformation Method

NI Vision for Visual Basic

GetFileInformation Method

Syntax

CWIMAQVision.GetFileInformation Path, FileInformation

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Returns information regarding the contents of an image file. You can retrieve information from the following image file formats only: AIPD, BMP, JPEG, PNG, and TIFF.

Parameters

Path As String

The name of the file from which the method gets information.

FileInformation As CWIMAQFileInformation

On return, contains information about the file.

Example

Dim path As String
Dim info As New CWIMAQFileInformation

' Set the file path in the variable named path

' Get the file information
CWIMAQVision1.GetFileInformation path, info