Remove System.Drawing.Common dependency

This commit is contained in:
goremykin 2025-04-21 13:42:16 +02:00
parent bd0644e775
commit 022a559bc7
3 changed files with 4 additions and 7 deletions

View file

@ -161,9 +161,9 @@ public class ImageServiceTests
private static void GenerateColorImage(string hexColor, string outputPath)
{
var color = ImageService.HexToRgb(hexColor);
var (r, g, b) = ImageService.HexToRgb(hexColor);
using var blackImage = Image.Black(200, 100);
using var colorImage = blackImage.NewFromImage(color.R, color.G, color.B);
using var colorImage = blackImage.NewFromImage(r, g, b);
colorImage.WriteToFile(outputPath);
}