This repository was archived by the owner on Mar 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
101 lines (99 loc) · 3.56 KB
/
MainWindow.axaml
File metadata and controls
101 lines (99 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<Window
MaxHeight="900"
MaxWidth="1600"
MinHeight="480"
MinWidth="640"
Title="ImageProcessingGUI"
d:DesignHeight="900"
d:DesignWidth="1600"
mc:Ignorable="d"
x:Class="ImageProcessingGUI.MainWindow"
xmlns="https://github.com/avaloniaui"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Window.Styles>
<Style Selector="MenuItem">
<Setter Property="FontSize" Value="18" />
</Style>
</Window.Styles>
<DockPanel Background="Lavender">
<Menu
Background="Gray"
DockPanel.Dock="Top"
Foreground="Black">
<MenuItem Header="_File">
<MenuItem Click="LoadImage" Header="_Open..." />
<MenuItem Click="SaveImage" Header="_Save..." />
</MenuItem>
<MenuItem Header="Filters">
<MenuItem
Click="ApplyTransformation"
Header="Blur"
Name="Blur" />
<MenuItem
Click="ApplyTransformation"
Header="Edges"
Name="Edges" />
<MenuItem
Click="ApplyTransformation"
Header="Laplacian"
Name="Laplacian" />
<MenuItem
Click="ApplyTransformation"
Header="High-Pass"
Name="High-Pass" />
<MenuItem
Click="ApplyTransformation"
Header="Vertical-Sobel"
Name="Vertical-Sobel" />
</MenuItem>
<MenuItem Header="Rotate">
<MenuItem
Click="ApplyTransformation"
Header="Clockwise"
Name="Clockwise" />
<MenuItem
Click="ApplyTransformation"
Header="Counter-Clockwise"
Name="Counter-Clockwise" />
</MenuItem>
<MenuItem Header="Reflect">
<MenuItem
Click="ApplyTransformation"
Header="Horizontally"
Name="Horizontally" />
<MenuItem
Click="ApplyTransformation"
Header="Vertically"
Name="Vertically" />
</MenuItem>
<MenuItem Header="Processing-Strategy" Name="Processing-Strategy">
<RadioButton
Checked="ChangeRunStrategy"
GroupName="Mode"
IsChecked="True"
Name="CPU">
CPU
</RadioButton>
<RadioButton
Checked="ChangeRunStrategy"
GroupName="Mode"
Name="GPU">
GPU
</RadioButton>
</MenuItem>
<MenuItem Click="ResetChanges" Header="_Reset" />
<MenuItem Header="About">
<TextBlock>MIT License Copyright (c) 2023 Artem Burashnikov</TextBlock>
</MenuItem>
</Menu>
<ScrollViewer>
<Image
Margin="30,10,30,10"
MaxHeight="800"
MaxWidth="1500"
Name="Image" />
</ScrollViewer>
</DockPanel>
</Window>