-
Notifications
You must be signed in to change notification settings - Fork 6
/
MainWindow.xaml
27 lines (24 loc) · 1.31 KB
/
MainWindow.xaml
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
<Window x:Class="Microsoft.Samples.Kinect.CoordinateMappingBasics.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ATX's Kinect V2 Green Screen"
Width="1304" Height="1080" Background="Lime" Top="0" Left="0" Margin="0,0,0,0"
Closing="MainWindow_Closing" ResizeMode="NoResize" WindowStyle="None" HorizontalAlignment="Left" VerticalAlignment="Top">
<Window.Resources>
<Style TargetType="{x:Type Image}">
<Setter Property="SnapsToDevicePixels" Value="True" />
</Style>
</Window.Resources>
<Viewbox Grid.Row="1" HorizontalAlignment="Center">
<Image Source="{Binding ImageSource}" Stretch="UniformToFill" RenderTransformOrigin="0.5,0.5" ClipToBounds="True" Width="1920" Height="1080" Margin="-308,0" >
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleY="1" ScaleX="-1"/>
<SkewTransform AngleY="0" AngleX="0"/>
<RotateTransform Angle="0"/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
</Viewbox>
</Window>