29 lines
896 B
C#
29 lines
896 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Media.Imaging;
|
|
using XP.ImageProcessing.Core;
|
|
|
|
namespace XplorePlane.Services
|
|
{
|
|
public interface IImageProcessingService : IDisposable
|
|
{
|
|
IReadOnlyList<string> GetAvailableProcessors();
|
|
|
|
IReadOnlyList<ProcessorParameter> GetProcessorParameters(string processorName);
|
|
|
|
ImageProcessorBase GetProcessor(string processorName);
|
|
|
|
string GetProcessorDisplayName(string processorName);
|
|
|
|
void RegisterProcessor(string name, ImageProcessorBase processor);
|
|
|
|
Task<BitmapSource> ProcessImageAsync(
|
|
BitmapSource source,
|
|
string processorName,
|
|
IDictionary<string, object> parameters,
|
|
IProgress<double> progress = null,
|
|
CancellationToken cancellationToken = default);
|
|
}
|
|
} |