Commit a16182bc authored by BORNON Théophile's avatar BORNON Théophile

v1.0.0

parent be394247
...@@ -89,7 +89,7 @@ namespace S04_Projet ...@@ -89,7 +89,7 @@ namespace S04_Projet
{ {
byte total = (byte)((r + g + b) / 3); byte total = (byte)((r + g + b) / 3);
total = (byte)(Math.Round((double)total / (255 / (scale - 1))) * (255 / (scale - 1))); total = (byte)(Math.Round((double)total / (255 / (scale - 1))) * (255 / (scale - 1)));
return new Pixel(total); return new Pixel(total);
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment