Removed WindowsDesktopUtilities
This commit is contained in:
parent
689ffc71a2
commit
de75543b33
@ -1,28 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using Dinah.Core.Drawing;
|
||||
using FileManager;
|
||||
|
||||
namespace WindowsDesktopUtilities
|
||||
{
|
||||
public static class WinAudibleImageServer
|
||||
{
|
||||
private static Dictionary<PictureDefinition, Image> cache { get; } = new Dictionary<PictureDefinition, Image>();
|
||||
|
||||
public static Image GetImage(string pictureId, PictureSize size)
|
||||
{
|
||||
var def = new PictureDefinition(pictureId, size);
|
||||
if (!cache.ContainsKey(def))
|
||||
{
|
||||
(var isDefault, var bytes) = PictureStorage.GetPicture(def);
|
||||
|
||||
var image = ImageReader.ToImage(bytes);
|
||||
if (isDefault)
|
||||
return image;
|
||||
cache[def] = image;
|
||||
}
|
||||
return cache[def];
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
<TargetFramework>net5.0-windows</TargetFramework>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ApplicationIcon />
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Dinah.Core\Dinah.Core.WindowsDesktop\Dinah.Core.WindowsDesktop.csproj" />
|
||||
<ProjectReference Include="..\FileManager\FileManager.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Loading…
x
Reference in New Issue
Block a user