Added image embedded resources (from og UIX.dll)

This commit is contained in:
Yoshi Askharoun
2021-10-04 14:27:37 -05:00
parent 5ba04306df
commit 3bb7bf3bd6
4 changed files with 5 additions and 2 deletions
+1 -2
View File
@@ -76,8 +76,7 @@ namespace Microsoft.Iris.OS
Assembly assembly = Assembly.GetExecutingAssembly();
System.IO.MemoryStream stream = new System.IO.MemoryStream();
var ress = assembly.GetManifestResourceNames();
using (var input = assembly.GetManifestResourceStream(resourceName))
using (var input = assembly.GetManifestResourceStream(resourceName.ToUpperInvariant()))
{
if (input == null) return false;
input.CopyTo(stream);
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

+4
View File
@@ -10,6 +10,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<UseWpf>true</UseWpf>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource LogicalName="ACQUIRINGIMAGE.PNG" Include="Resources\ACQUIRINGIMAGE.PNG" />
<EmbeddedResource LogicalName="ERRORIMAGE.PNG" Include="Resources\ERRORIMAGE.PNG" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="SkiaSharp" Version="2.80.3" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0" />