Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.TVP
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.TVP
Commits
9ebdbbc0
Commit
9ebdbbc0
authored
Dec 21, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预览窗口比例调整
parent
77f8636b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletions
+7
-1
VIZ.TVP.Module/VizRender/Controller/VizController/VizController.cs
+3
-0
VIZ.TVP.Module/VizRender/View/VizRenderView.xaml
+1
-1
VIZ.TVP.Module/VizRender/ViewModel/VizRenderViewModel.cs
+3
-0
No files found.
VIZ.TVP.Module/VizRender/Controller/VizController/VizController.cs
View file @
9ebdbbc0
...
...
@@ -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
;
...
...
VIZ.TVP.Module/VizRender/View/VizRenderView.xaml
View file @
9ebdbbc0
...
...
@@ -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>
...
...
VIZ.TVP.Module/VizRender/ViewModel/VizRenderViewModel.cs
View file @
9ebdbbc0
...
...
@@ -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
}
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment