You are here: Start » AVL.NET » Function Reference » Image » Image IO » AVL.GrabImage_FromFiles

AVL.GrabImage_FromFiles

Simulates capturing a frame from a camera.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static bool GrabImage_FromFiles
(
	string inDirectory,
	AvlNet.ImageFileFormat? inFileType,
	AvlNet.FileSortingOrder inSortingOrder,
	bool inRepeat,
	bool inProcessSubdirectories,
	bool inInvert,
	bool inLoadAlphaChannel,
	int inDelay,
	AvlNet.Image outImage,
	out string outFilePath,
	out string outFileName
)

Parameters

Name Type Range Default Description
inDirectorystring\".\"Input directory. Default value: ".".
inFileTypeAvlNet.ImageFileFormat?File format of the images. Default value: atl::NIL.
inSortingOrderAvlNet.FileSortingOrderSorting order.
inRepeatboolDetermines whether to repeat reading directory after reading all files.
inProcessSubdirectoriesboolFlag indicating whether to load images from the subdirectories or not.
inInvertboolFlag indicating whether to enumerate images backwards or not.
inLoadAlphaChannelboolFlag indicating whether to load alpha channel of the image or not.
inDelayint<0, 2000>
outImageAvlNet.ImageOutput image.
outFilePathstringOutput file path.
outFileNamestringOutput file name.

Description

This filter works similarly to EnumerateImages, but it behaves more like a camera: it preserves its state across the whole program.

For example, you can have two GrabImage_FromFiles filters in two different Task macrofilters. When execution of second Task starts, images loaded previously in the first Task are not loaded again.

Errors

List of possible exceptions:

Error type Description
DomainError All instances of GrabImage_FromFiles must have these same parameters.

Function Overrides

See also