File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed
Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 2222 <SymbolPackageFormat >snupkg</SymbolPackageFormat >
2323 <PackageReleaseNotes >See release notes here: https://github.com/d2phap/DXControl/releases</PackageReleaseNotes >
2424 <Authors >Duong Dieu Phap</Authors >
25- <VersionPrefix >3.1 .0</VersionPrefix >
25+ <VersionPrefix >3.2 .0</VersionPrefix >
2626 <PublishRepositoryUrl >true</PublishRepositoryUrl >
2727 <EmbedUntrackedSources >true</EmbedUntrackedSources >
2828 <DocumentationFile >bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile >
7575 </ItemGroup >
7676
7777 <ItemGroup >
78- <PackageReference Include =" DirectNStandard" Version =" 1.15.0.2 " />
78+ <PackageReference Include =" DirectNStandard" Version =" 1.16.0 " />
7979 <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" >
8080 <PrivateAssets >all</PrivateAssets >
8181 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
8282 </PackageReference >
83- <PackageReference Include =" WicNet" Version =" 1.7.1 " />
83+ <PackageReference Include =" WicNet" Version =" 1.8.3 " />
8484 </ItemGroup >
8585
8686</Project >
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ private async Task StartFramingTimerAsync()
469469 }
470470
471471
472- #endregion // Private functions
472+ #endregion // Private functions
473473
474474
475475 // Public functions
Original file line number Diff line number Diff line change 1717 </ItemGroup >
1818
1919 <ItemGroup >
20- <PackageReference Include =" Magick.NET-Q16-AnyCPU" Version =" 13.5 .0" />
21- <PackageReference Include =" Magick.NET.SystemWindowsMedia" Version =" 7.2.1 " />
20+ <PackageReference Include =" Magick.NET-Q16-AnyCPU" Version =" 13.7 .0" />
21+ <PackageReference Include =" Magick.NET.SystemWindowsMedia" Version =" 7.2.3 " />
2222 </ItemGroup >
2323
2424 <ItemGroup >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ MIT License
33Copyright (C) 2022-2024 DUONG DIEU PHAP
44Project & license info: https://github.com/d2phap/DXControl
55*/
6+ using DirectN ;
67using ImageMagick ;
78using Microsoft . Win32 . SafeHandles ;
89using System . Reflection ;
@@ -21,10 +22,15 @@ public Form1()
2122
2223 private void Form1_Load ( object sender , EventArgs e )
2324 {
24- using var imgM = new MagickImage ( Environment . GetCommandLineArgs ( ) [ 1 ] ) ;
25- canvas . Image = FromBitmapSource ( imgM . ToBitmapSource ( ) ) ;
25+ var filePath = @"photo.png" ;
2626
27- canvas . Bitmap = new Bitmap ( Environment . GetCommandLineArgs ( ) [ 1 ] , true ) ;
27+ if ( ! string . IsNullOrEmpty ( filePath ) )
28+ {
29+ using var imgM = new MagickImage ( filePath ) ;
30+ canvas . Image = FromBitmapSource ( imgM . ToBitmapSource ( ) ) ;
31+
32+ canvas . Bitmap = new Bitmap ( filePath , true ) ;
33+ }
2834 }
2935
3036
You can’t perform that action at this time.
0 commit comments