naps2/NAPS2.Images/PostProcessingData.cs
2022-07-01 21:45:52 -07:00

13 lines
516 B
C#

using System.Threading;
namespace NAPS2.Images;
// TODO: We need to use the thumbnail when appropriate. Although we do need to consider thumbnail invalidation.
// TODO: We need to do OCR cancellation when the image is deleted or whatever.
public record PostProcessingData(IMemoryImage? Thumbnail, TransformState? ThumbnailTransformState,
BarcodeDetection BarcodeDetection, CancellationTokenSource? OcrCts)
{
public PostProcessingData() : this(null, null, BarcodeDetection.NotAttempted, null)
{
}
}