GetFileInfo Method

NI Vision for Visual Basic

GetFileInfo Method

Syntax

CWIMAQVision.GetFileInfo Path, Format, BitsPerPixel, Width, Height

Return Type

Long

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

Purpose

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

Parameters

Path As String

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

Format As CWIMAQFileFormats

On return, the file type that the method read.

BitsPerPixel As Long

On return, the number of bits per pixel.

Width As Long

On return, the horizontal size of the image defined in the header of standard image file formats.

Height As Long

On return, the vertical size of the image defined in the header of standard image file formats.

See Also

GetFileInformation