add zoom and panning

zoom: ctrl + wheel, zoomed image:
ctrl + move mousr
This commit is contained in:
Alex Bezdieniezhnykh
2025-06-30 00:01:20 +03:00
parent 627e63e543
commit c42faa1e2e
4 changed files with 108 additions and 28 deletions
+13 -2
View File
@@ -304,7 +304,7 @@ public partial class Annotator
{
if (File.Exists(annotation.ImagePath))
{
Editor.Background = new ImageBrush { ImageSource = await annotation.ImagePath.OpenImage() };
Editor.SetImageSource(await annotation.ImagePath.OpenImage());
_formState.BackgroundTime = annotation.Time;
videoSize = Editor.RenderSize;
}
@@ -578,10 +578,21 @@ public partial class Annotator
}
}
#region Denys Wishes
private void SoundDetections(object sender, RoutedEventArgs e)
{
_logger.LogInformation("To be implemented");
MessageBox.Show("Функція Аудіоаналіз знаходиться в стадії розробки","Система", MessageBoxButton.OK, MessageBoxImage.Information);
_logger.LogInformation("Denys wishes #1. To be implemented");
}
private void RunDroneMaintenance(object sender, RoutedEventArgs e)
{
MessageBox.Show("Функція Аналіз стану БПЛА знаходиться в стадії розробки","Система", MessageBoxButton.OK, MessageBoxImage.Information);
_logger.LogInformation("Denys wishes #2. To be implemented");
}
#endregion
}
public class GradientStyleSelector : StyleSelector