视觉修改
This commit is contained in:
		
							
								
								
									
										29
									
								
								Check.Main/Common/ProcessingCompletedEventArgs.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Check.Main/Common/ProcessingCompletedEventArgs.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| using SkiaSharp; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Check.Main.Common | ||||
| { | ||||
|     public class ProcessingCompletedEventArgs : EventArgs, IDisposable | ||||
|     { | ||||
|         public int CameraIndex { get; } | ||||
|         public long ProductId { get; } | ||||
|         public SKImage ResultImage { get; } // 【修改】携带已绘制好结果的SKImage | ||||
|  | ||||
|         public ProcessingCompletedEventArgs(int cameraIndex, long productId, SKImage resultImage) | ||||
|         { | ||||
|             CameraIndex = cameraIndex; | ||||
|             ProductId = productId; | ||||
|             ResultImage = resultImage; | ||||
|         } | ||||
|  | ||||
|         // 实现 IDisposable 以确保SKImage资源被释放 | ||||
|         public void Dispose() | ||||
|         { | ||||
|             ResultImage?.Dispose(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user