mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Storage - Downgrade EF for now to latest 8.x
Core - Include backwards compatible color quantizer methods
This commit is contained in:
parent
37f973b093
commit
d725234d56
@ -12,6 +12,20 @@ namespace Artemis.Core.ColorScience;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static class ColorQuantizer
|
public static class ColorQuantizer
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc cref="Quantize(Span{SKColor}, int)"/>
|
||||||
|
[Obsolete("Use Quantize(Span<SKColor> colors, int amount) in-parameter instead")]
|
||||||
|
public static SKColor[] Quantize(in Span<SKColor> colors, int amount)
|
||||||
|
{
|
||||||
|
return Quantize(colors, amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc cref="QuantizeSplit(Span{SKColor}, int)"/>
|
||||||
|
[Obsolete("Use QuantizeSplit(Span<SKColor> colors, int splits) without the in-parameter instead")]
|
||||||
|
public static SKColor[] QuantizeSplit(in Span<SKColor> colors, int splits)
|
||||||
|
{
|
||||||
|
return QuantizeSplit(colors, splits);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Quantizes a span of colors into the desired amount of representative colors.
|
/// Quantizes a span of colors into the desired amount of representative colors.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -26,7 +40,7 @@ public static class ColorQuantizer
|
|||||||
int splits = BitOperations.Log2((uint)amount);
|
int splits = BitOperations.Log2((uint)amount);
|
||||||
return QuantizeSplit(colors, splits);
|
return QuantizeSplit(colors, splits);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Quantizes a span of colors, splitting the average <paramref name="splits"/> number of times.
|
/// Quantizes a span of colors, splitting the average <paramref name="splits"/> number of times.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -32,9 +32,9 @@
|
|||||||
<PackageVersion Include="Markdown.Avalonia.Tight" Version="11.0.2" />
|
<PackageVersion Include="Markdown.Avalonia.Tight" Version="11.0.2" />
|
||||||
<PackageVersion Include="Material.Icons.Avalonia" Version="2.1.10" />
|
<PackageVersion Include="Material.Icons.Avalonia" Version="2.1.10" />
|
||||||
<PackageVersion Include="McMaster.NETCore.Plugins" Version="1.4.0" />
|
<PackageVersion Include="McMaster.NETCore.Plugins" Version="1.4.0" />
|
||||||
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
|
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.11" />
|
||||||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
|
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.11" />
|
||||||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0">
|
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.11">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageVersion>
|
</PackageVersion>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user