mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-02 21:36:25 +02:00
Revert "nuget: bump SixLabors.ImageSharp from 1.0.4 to 2.1.3 (#3976)"
This reverts commit 9677ddaa5d
.
SixLabors.ImageShar switched to a shady and vague license starting with 2.x
without mentioning it on their changelog.
As a result we are staying on 1.x (licensed under Apache-2) and will
seak an alternative package.
This commit is contained in:
parent
9677ddaa5d
commit
d692a9b83e
5 changed files with 6 additions and 6 deletions
|
@ -125,7 +125,7 @@ namespace Ryujinx.Ava.Ui.Windows
|
|||
|
||||
public static Bgra32[] GetBuffer(Image<Bgra32> image)
|
||||
{
|
||||
return image.DangerousTryGetSinglePixelMemory(out var data) ? data.ToArray() : new Bgra32[0];
|
||||
return image.TryGetSinglePixelSpan(out var data) ? data.ToArray() : new Bgra32[0];
|
||||
}
|
||||
|
||||
private static int GetColorScore(Dictionary<int, int> dominantColorBin, int maxHitCount, PaletteColor color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue