Class ProgressEventHandlerInfo
Class ProgressEventHandlerInfo
이름 공간 : Aspose.Imaging.ProgressManagement 모임: Aspose.Imaging.dll (25.4.0)
이 클래스는 이미지 로드 / 저장 / 수출 작업의 진행에 대한 정보를 나타냅니다.외부 응용 프로그램에서 사용하여 최종 사용자로 변환 진행을 표시할 수 있습니다.
public class ProgressEventHandlerInfo
Inheritance
object ← ProgressEventHandlerInfo
상속 회원들
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
다음 예제는 로드 / 수출 작업의 진행 이벤트에 대한 정보를 인쇄하는 방법을 보여줍니다.
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
Properties
Description
이벤트에 대한 설명을 얻습니다.
public string Description { get; }
부동산 가치
EventType
이벤트의 유형을 확인합니다.
public EventType EventType { get; }
부동산 가치
MaxValue
상단 진보 가치 제한을 얻습니다.
public int MaxValue { get; }
부동산 가치
Value
현재 진보의 가치를 얻습니다.
public int Value { get; }