ProgressEventHandlerInfo Class
This class represents information about image load/save/export operations progress, that can be used in external application to show conversion progress to end user
Inheritance Hierarchy

Namespace: Aspose.Imaging.ProgressManagement
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.02
public class ProgressEventHandlerInfo

The ProgressEventHandlerInfo type exposes the following members.

Public propertyDescription
Gets the description of the event
Public propertyEventType
Gets the type of the event.
Public propertyMaxValue
Gets the upper progress value limit.
Public propertyValue
Gets current progress value.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
The following example shows how to print information about progress events for load/export operations.

public void Test3460()
    string dir = "c:\\aspose.imaging\\net\\issues\\3460";
    string fileName = System.IO.Path.Combine(dir, "big.png");

    // Example of use of separate operation progress event handlers for load/export operations
    using (var image = Aspose.Imaging.Image.Load(fileName, new Aspose.Imaging.LoadOptions { ProgressEventHandler = ProgressCallback }))
        image.Save(fileName + ".psd",
                   new Aspose.Imaging.ImageOptions.PsdOptions() { ProgressEventHandler = ExportProgressCallback });

private void ProgressCallback(Aspose.Imaging.ProgressManagement.ProgressEventHandlerInfo info)
    System.Console.WriteLine("{0} : {1}/{2}", info.EventType, info.Value, info.MaxValue);

private void ExportProgressCallback(Aspose.Imaging.ProgressManagement.ProgressEventHandlerInfo info)
    System.Console.WriteLine("Export event {0} : {1}/{2}", info.EventType, info.Value, info.MaxValue);

// The STDOUT log may look like this:
//Initialization : 1/4
//PreProcessing : 2/4
//Processing : 3/4
//Finalization : 4/4
//Export event Initialization : 1/4
//Export event PreProcessing : 2/4
//Export event Processing : 3/4
//Export event RelativeProgress : 1/1
//RelativeProgress : 1/1
//Export event Finalization : 4/4
See Also