mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
add zoom and panning
zoom: ctrl + wheel, zoomed image: ctrl + move mousr
This commit is contained in:
@@ -315,7 +315,7 @@
|
||||
<ColumnDefinition Width="28" /> <!-- 10 -->
|
||||
<ColumnDefinition Width="28" /> <!-- 11 -->
|
||||
<ColumnDefinition Width="28" /> <!-- 12 -->
|
||||
<ColumnDefinition Width="0" /> <!-- 13 -->
|
||||
<ColumnDefinition Width="28" /> <!-- 13 -->
|
||||
<ColumnDefinition Width="*" /> <!-- 14-->
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Grid.Column="0" Padding="5" ToolTip="Включити програвання" Background="Black" BorderBrush="Black"
|
||||
@@ -602,6 +602,19 @@
|
||||
</Image.Source>
|
||||
</Image>
|
||||
</Button>
|
||||
<Button Grid.Column="13"
|
||||
Padding="2"
|
||||
Width="25"
|
||||
Height="25"
|
||||
ToolTip="Аналіз стану БПЛА. Клавіша: [K]" Background="Black" BorderBrush="Black"
|
||||
Click="RunDroneMaintenance">
|
||||
<Path Stretch="Fill" Fill="LightGray" Data="
|
||||
M128,7.10542736e-15 C198.692448,7.10542736e-15 256,57.307552 256,128 C256,140.931179 254.082471,153.414494 250.516246,165.181113 L384,298.666667
|
||||
C407.564149,322.230816 407.564149,360.435851 384,384 C360.435851,407.564149 322.230816,407.564149 298.666667,384 L165.181113,250.516246
|
||||
C153.414494,254.082471 140.931179,256 128,256 C57.307552,256 7.10542736e-15,198.692448 7.10542736e-15,128 C7.10542736e-15,114.357909
|
||||
2.13416363,101.214278 6.08683609,88.884763 L66.6347809,149.333333 L126.649,129.346 L129.329,126.666 L149.333333,66.7080586 L88.7145729,6.14152881
|
||||
C101.0933,2.15385405 114.29512,7.10542736e-15 128,7.10542736e-15 Z" />
|
||||
</Button>
|
||||
<StatusBar Grid.Column="14"
|
||||
Background="#252525"
|
||||
Foreground="White">
|
||||
|
||||
@@ -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