Commit 9ebdbbc0 by liulongfei

预览窗口比例调整

parent 77f8636b
......@@ -56,6 +56,9 @@ namespace VIZ.TVP.Module
var dpi = WPFHelper.GetDpiByGraphics();
int width = (int)(view.host.ActualWidth * (dpi.X / 96d));
int height = (int)(view.host.ActualHeight * (dpi.Y / 96d));
ImageHelper.AdjustSize(width, height, 1920, 1080, out width, out height);
IntPtr hWnd = view.host.ContainerFormHandle;
IntPtr vizHandle = IntPtr.Zero;
......
......@@ -52,7 +52,7 @@
<Rectangle Width="2" VerticalAlignment="Stretch" Fill="Red"></Rectangle>
<RadioButton Content="RGB" Width="40" Height="30" Margin="5,0,0,0">
<RadioButton Content="RGB" Width="40" Height="30" Margin="5,0,0,0" IsChecked="True">
<dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowRGBCommand}"></dxmvvm:EventToCommand>
</dxmvvm:Interaction.Behaviors>
......
......@@ -166,6 +166,9 @@ namespace VIZ.TVP.Module
int width = (int)(e.NewSize.Width * (dpi.X / 96d));
int height = (int)(e.NewSize.Height * (dpi.Y / 96d));
ImageHelper.AdjustSize(width, height, 1920, 1080, out width, out height);
local.EndpointManager.Send($"RENDERER WINDOW_RESIZE {width} {height}");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment