You are here: Start » AVL.NET » Invoke.EnumerateImages_Random
Scans a disk directory for image files and then returns the images one by one in consecutive iterations sorted randomly.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static bool EnumerateImages_Random ( Avl.EnumerateFilesRandomState ioState, string inDirectory, Optional<Avl.ImageFileFormat> inFileType, Optional<int> inSeed, bool inRepeat, bool inProcessSubdirectories, bool inInvert, bool inLoadAlphaChannel, int inDelay, Avl.Image outImage, out string outFilePath, out string outFileName, Optional<bool> outIsFirst, Optional<bool> outIsLast )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | Avl.EnumerateFilesRandomState | ||||
![]() | inDirectory | string | \".\" | Input directory. Default value: ".". | |
![]() | inFileType | Atl.Optional<Avl.ImageFileFormat> | File format of the images. Default value: atl::NIL. | ||
![]() | inSeed | Atl.Optional<int> | Random seed used to determine random sorting order. Default value: atl::NIL. | ||
![]() | 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. | ||
![]() | inDelay | int | Minimum time between iterations in milliseconds. | ||
![]() | outImage | Avl.Image | Output image. | ||
![]() | outFilePath | string | Output file path. | ||
![]() | outFileName | string | Output file name. | ||
![]() | outIsFirst | Atl.Optional<bool> | Flag indicating the first iteration. | ||
![]() | outIsLast | Atl.Optional<bool> | Flag indicating the last iteration. |