plugin system docs
custom buttons for plugins calibration functions for Leeform
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.Globalization;
|
||||
using Avalonia.Data.Converters;
|
||||
using OpenCvSharp;
|
||||
using VisionBuilder.UI.Avalonia.Uno.Services;
|
||||
|
||||
namespace VisionBuilder.UI.Avalonia.Uno.Converters;
|
||||
|
||||
public class MatToBitmapConverter : IValueConverter
|
||||
{
|
||||
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
if (value is Mat mat && !mat.Empty())
|
||||
{
|
||||
return ImageConverter.MatToAvaloniaBitmap(mat);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user