You are here: Start » AVL.NET » 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, AvlNet.Image outImage, out string outFilePath, out string outFileName )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inDirectory | string | Input directory. | |||
inFileType | AvlNet.ImageFileFormat? | File format of the images. Default value: atl::NIL. | |||
inSortingOrder | AvlNet.FileSortingOrder | Sorting order. | |||
inRepeat | bool | Determines whether to repeat reading directory after reading all files. | |||
inProcessSubdirectories | bool | Flag indicating whether to load images from the subdirectories or not. | |||
inInvert | bool | Flag indicating whether to enumerate images backwards or not. | |||
inLoadAlphaChannel | bool | Flag indicating whether to load alpha channel of the image or not. | |||
outImage | AvlNet.Image | Output image. | |||
outFilePath | string | Output file path. | |||
outFileName | string | Output 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.