You are here: Start » AVL.NET » AVL.EnumerateImages_Random

AVL.EnumerateImages_Random

Scans a disk directory for image files and then returns the images one by one in consecutive iterations sorted randomly.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static bool EnumerateImages_Random
(
	AvlNet.EnumerateFilesRandomState ioState,
	string inDirectory,
	AvlNet.ImageFileFormat? inFileType,
	int? inSeed,
	bool inRepeat,
	bool inProcessSubdirectories,
	bool inInvert,
	bool inLoadAlphaChannel,
	AvlNet.Image outImage,
	out string outFilePath,
	out string outFileName,
	out bool outIsFirst,
	out bool outIsLast
)

Parameters

Name Type Range Default Description
ioStateAvlNet.EnumerateFilesRandomState
inDirectorystringInput directory.
inFileTypeAvlNet.ImageFileFormat?File format of the images. Default value: atl::NIL.
inSeedint?Random seed used to determine random sorting order. Default value: atl::NIL.
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.
outImageAvlNet.ImageOutput image.
outFilePathstringOutput file path.
outFileNamestringOutput file name.
outIsFirstboolFlag indicating the first iteration.
outIsLastboolFlag indicating the last iteration.

Function Overrides

See also