C# Class NAPS2.ImportExport.Images.SaveImagesOperation

Inheritance: NAPS2.Operation.OperationBase
Datei anzeigen Open project: cyanfish/naps2

Public Methods

Method Description
Cancel ( ) : void
SaveImagesOperation ( FileNamePlaceholders fileNamePlaceholders, NAPS2.ImportExport.Images.ImageSettingsContainer imageSettingsContainer, IOverwritePrompt overwritePrompt, NAPS2.Util.ThreadFactory threadFactory ) : System
Start ( string fileName, System.DateTime dateTime, List images, bool batch = false ) : bool

Saves the provided collection of images to a file with the given name. The image type is inferred from the file extension. If multiple images are provided, they will be saved to files with numeric identifiers, e.g. img1.jpg, img2.jpg, etc..

WaitUntilFinished ( bool throwOnError = true ) : void

Private Methods

Method Description
DoSaveImage ( Bitmap image, string path, ImageFormat format ) : void
GetImageFormat ( string fileName ) : ImageFormat

Method Details

Cancel() public method

public Cancel ( ) : void
return void

SaveImagesOperation() public method

public SaveImagesOperation ( FileNamePlaceholders fileNamePlaceholders, NAPS2.ImportExport.Images.ImageSettingsContainer imageSettingsContainer, IOverwritePrompt overwritePrompt, NAPS2.Util.ThreadFactory threadFactory ) : System
fileNamePlaceholders FileNamePlaceholders
imageSettingsContainer NAPS2.ImportExport.Images.ImageSettingsContainer
overwritePrompt IOverwritePrompt
threadFactory NAPS2.Util.ThreadFactory
return System

Start() public method

Saves the provided collection of images to a file with the given name. The image type is inferred from the file extension. If multiple images are provided, they will be saved to files with numeric identifiers, e.g. img1.jpg, img2.jpg, etc..
public Start ( string fileName, System.DateTime dateTime, List images, bool batch = false ) : bool
fileName string The name of the file to save. For multiple images, this is modified by appending a number before the extension.
dateTime System.DateTime
images List The collection of images to save.
batch bool
return bool

WaitUntilFinished() public method

public WaitUntilFinished ( bool throwOnError = true ) : void
throwOnError bool
return void