C# Класс GR.Imaging.BitmapIO

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

LoadFromDirectory() публичный статический Метод

public static LoadFromDirectory ( string directory ) : List
directory string
Результат List

SaveToFile() публичный статический Метод

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
Результат void

SaveToFiles() публичный статический Метод

public static SaveToFiles ( ICollection bitmaps, string directory ) : void
bitmaps ICollection
directory string
Результат void

SaveToFiles() публичный статический Метод

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
Результат void