You are here: Start » FIL.NET » Function Reference » Image » Image IO » FIL.GrabImage_FromFiles
Simulates capturing a frame from a camera.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static bool GrabImage_FromFiles ( string inDirectory, FilNet.ImageFileFormat? inFileType, FilNet.FileSortingOrder inSortingOrder, bool inRepeat, bool inProcessSubdirectories, bool inInvert, bool inLoadAlphaChannel, FilNet.Image outImage, out string outFilePath, out string outFileName )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inDirectory | string | \".\" | Input directory. Default value: ".". | |
![]() | inFileType | FilNet.ImageFileFormat? | File format of the images. Default value: ftl::NIL. | ||
![]() | inSortingOrder | FilNet.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 | FilNet.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.