Skip to content

Commit d5c6120

Browse files
committed
updated WicNet 1.8.3, DirectNStandard 1.16.0
1 parent 56c1a9b commit d5c6120

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

Source/DXControl/D2Phap.DXControl.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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>
@@ -75,12 +75,12 @@
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>

Source/DXControl/DXControl.cs

+1-1
Original file line numberDiff line numberDiff 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

Source/Demo/Demo.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
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>

Source/Demo/Form1.cs

+9-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ MIT License
33
Copyright (C) 2022-2024 DUONG DIEU PHAP
44
Project & license info: https://github.com/d2phap/DXControl
55
*/
6+
using DirectN;
67
using ImageMagick;
78
using Microsoft.Win32.SafeHandles;
89
using 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

0 commit comments

Comments
 (0)