File tree 4 files changed +15
-9
lines changed
4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 22
22
<SymbolPackageFormat >snupkg</SymbolPackageFormat >
23
23
<PackageReleaseNotes >See release notes here: https://github.com/d2phap/DXControl/releases</PackageReleaseNotes >
24
24
<Authors >Duong Dieu Phap</Authors >
25
- <VersionPrefix >3.1 .0</VersionPrefix >
25
+ <VersionPrefix >3.2 .0</VersionPrefix >
26
26
<PublishRepositoryUrl >true</PublishRepositoryUrl >
27
27
<EmbedUntrackedSources >true</EmbedUntrackedSources >
28
28
<DocumentationFile >bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile >
75
75
</ItemGroup >
76
76
77
77
<ItemGroup >
78
- <PackageReference Include =" DirectNStandard" Version =" 1.15.0.2 " />
78
+ <PackageReference Include =" DirectNStandard" Version =" 1.16.0 " />
79
79
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" >
80
80
<PrivateAssets >all</PrivateAssets >
81
81
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
82
82
</PackageReference >
83
- <PackageReference Include =" WicNet" Version =" 1.7.1 " />
83
+ <PackageReference Include =" WicNet" Version =" 1.8.3 " />
84
84
</ItemGroup >
85
85
86
86
</Project >
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ private async Task StartFramingTimerAsync()
469
469
}
470
470
471
471
472
- #endregion // Private functions
472
+ #endregion // Private functions
473
473
474
474
475
475
// Public functions
Original file line number Diff line number Diff line change 17
17
</ItemGroup >
18
18
19
19
<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 " />
22
22
</ItemGroup >
23
23
24
24
<ItemGroup >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ MIT License
3
3
Copyright (C) 2022-2024 DUONG DIEU PHAP
4
4
Project & license info: https://github.com/d2phap/DXControl
5
5
*/
6
+ using DirectN ;
6
7
using ImageMagick ;
7
8
using Microsoft . Win32 . SafeHandles ;
8
9
using System . Reflection ;
@@ -21,10 +22,15 @@ public Form1()
21
22
22
23
private void Form1_Load ( object sender , EventArgs e )
23
24
{
24
- using var imgM = new MagickImage ( Environment . GetCommandLineArgs ( ) [ 1 ] ) ;
25
- canvas . Image = FromBitmapSource ( imgM . ToBitmapSource ( ) ) ;
25
+ var filePath = @"photo.png" ;
26
26
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
+ }
28
34
}
29
35
30
36
You can’t perform that action at this time.
0 commit comments