Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
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.Package
Commits
8eaf7960
Commit
8eaf7960
authored
Jan 13, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资源图片挪动位置
parent
739bd022
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
VIZ.Package.Module.Resource/Resources/Vedio.jpeg
+0
-0
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
+7
-0
VIZ.Package.Module/Resource/MediaResource/Controller/MediaResourceFileController.cs
+4
-1
VIZ.Package.Module/VIZ.Package.Module.csproj
+0
-6
No files found.
VIZ.Package.Module
/Resource/VedioImage
/Vedio.jpeg
→
VIZ.Package.Module
.Resource/Resources
/Vedio.jpeg
View file @
8eaf7960
File moved
VIZ.Package.Module.Resource/VIZ.Package.Module.Resource.csproj
View file @
8eaf7960
...
...
@@ -118,6 +118,7 @@
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
...
...
@@ -185,5 +186,10 @@
<ItemGroup>
<Resource Include="Icons\image_20x20.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Vedio.jpeg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.Package.Module/Resource/MediaResource/Controller/MediaResourceFileController.cs
View file @
8eaf7960
...
...
@@ -111,7 +111,10 @@ namespace VIZ.Package.Module
{
GHFile
.
Name
=
file
.
fileName
;
GHFile
.
Path
=
file
.
smallIconUrl
;
string
strVedioPath
=
string
.
Format
(
"{0}{1}"
,
System
.
Environment
.
CurrentDirectory
,
"\\Resource\\VedioImage\\Vedio.jpeg"
);
GHFile
.
FileType
=
ResourceFileType
.
Video
;
GHFile
.
Date
=
Convert
.
ToDateTime
(
file
.
fileUpdateTime
).
ToString
(
"yyyy/MM/dd HH:mm"
);
GHFile
.
FileSize
=
file
.
fileSize
;
string
strVedioPath
=
string
.
Format
(
"{0}{1}"
,
System
.
Environment
.
CurrentDirectory
,
"\\Resources\\Vedio.jpeg"
);
Image
vedioImage
=
Image
.
FromFile
(
strVedioPath
);
vedioImage
=
ThumbnailHelper
.
GetThumbnail
(
vedioImage
,
vedioImage
.
Width
/
2
,
vedioImage
.
Height
/
2
);
Bitmap
vedioBtm
=
new
Bitmap
(
vedioImage
);
...
...
VIZ.Package.Module/VIZ.Package.Module.csproj
View file @
8eaf7960
...
...
@@ -588,10 +588,5 @@
<Name>VIZ.Package.Storage</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Resource\VedioImage\Vedio.jpeg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
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