C# Class NAPS2.ImportExport.Images.SaveImagesOperation

Inheritance: NAPS2.Operation.OperationBase
Afficher le fichier Open project: cyanfish/naps2

Méthodes publiques

Méthode 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

Méthode Description
DoSaveImage ( Bitmap image, string path, ImageFormat format ) : void
GetImageFormat ( string fileName ) : ImageFormat

Method Details

Cancel() public méthode

public Cancel ( ) : void
Résultat void

SaveImagesOperation() public méthode

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
Résultat System

Start() public méthode

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
Résultat bool

WaitUntilFinished() public méthode

public WaitUntilFinished ( bool throwOnError = true ) : void
throwOnError bool
Résultat void