Fix color scape test
This commit is contained in:
parent
d3f8a503c2
commit
bd0644e775
1 changed files with 3 additions and 3 deletions
|
|
@ -162,9 +162,9 @@ public class ImageServiceTests
|
||||||
private static void GenerateColorImage(string hexColor, string outputPath)
|
private static void GenerateColorImage(string hexColor, string outputPath)
|
||||||
{
|
{
|
||||||
var color = ImageService.HexToRgb(hexColor);
|
var color = ImageService.HexToRgb(hexColor);
|
||||||
using var colorImage = Image.Black(200, 100);
|
using var blackImage = Image.Black(200, 100);
|
||||||
using var output = colorImage + new[] { color.R / 255.0, color.G / 255.0, color.B / 255.0 };
|
using var colorImage = blackImage.NewFromImage(color.R, color.G, color.B);
|
||||||
output.WriteToFile(outputPath);
|
colorImage.WriteToFile(outputPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GenerateHtmlFileForColorScape()
|
private void GenerateHtmlFileForColorScape()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue