mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:06:30 +00:00
add zoom and panning
zoom: ctrl + wheel, zoomed image: ctrl + move mousr
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user