diff --git a/src/ImageSharp/Formats/Tiff/PhotometricInterpretation/YCbCrConverter.cs b/src/ImageSharp/Formats/Tiff/PhotometricInterpretation/YCbCrConverter.cs index aa64a6e32..c6594f908 100644 --- a/src/ImageSharp/Formats/Tiff/PhotometricInterpretation/YCbCrConverter.cs +++ b/src/ImageSharp/Formats/Tiff/PhotometricInterpretation/YCbCrConverter.cs @@ -68,7 +68,7 @@ namespace SixLabors.ImageSharp.Formats.Tiff.PhotometricInterpretation private static byte RoundAndClampTo8Bit(float value) { int input = (int)MathF.Round(value); - return (byte)Math.Clamp(input, 0, 255); + return (byte)Numerics.Clamp(input, 0, 255); } private readonly struct CodingRangeExpander