C# Class GR.Imaging.BitmapIO

显示文件 Open project: alexhanh/Botting-Library

Public Methods

Method Description
LoadFromDirectory ( string directory ) : List
SaveToFile ( FastBitmap bitmap, string filepath ) : void

Saves to file but does not overwrite filename if it already exists, it insted adds a new number to the end.

SaveToFiles ( ICollection bitmaps, string directory ) : void
SaveToFiles ( ICollection bitmaps, string directory, string prefix ) : void

Saves image collection to given directory. Directory, with sub-folders, will be created if it does not exist. Filenames of the images will be prefixed with the given prefix and use a simple numbering naming convention, ie. "prefix_count.bmp". This will overwrite any existing files with the same name.

Method Details

LoadFromDirectory() public static method

public static LoadFromDirectory ( string directory ) : List
directory string
return List

SaveToFile() public static method

Saves to file but does not overwrite filename if it already exists, it insted adds a new number to the end.
public static SaveToFile ( FastBitmap bitmap, string filepath ) : void
bitmap FastBitmap
filepath string
return void

SaveToFiles() public static method

public static SaveToFiles ( ICollection bitmaps, string directory ) : void
bitmaps ICollection
directory string
return void

SaveToFiles() public static method

Saves image collection to given directory. Directory, with sub-folders, will be created if it does not exist. Filenames of the images will be prefixed with the given prefix and use a simple numbering naming convention, ie. "prefix_count.bmp". This will overwrite any existing files with the same name.
public static SaveToFiles ( ICollection bitmaps, string directory, string prefix ) : void
bitmaps ICollection
directory string Directory should be given as absolute ("C:/Foo/Bar/") or relative ("Foo/Bar/").
prefix string
return void