Browse Source
Merge branch 'master' into js/faster-transforms
af/octree-no-pixelmap
James Jackson-South
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/ImageSharp/Formats/Jpeg/Components/Decoder/ColorConverters/JpegColorConverter.cs
|
|
|
@ -69,7 +69,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder.ColorConverters |
|
|
|
/// <summary>
|
|
|
|
/// Returns the <see cref="JpegColorConverter"/> corresponding to the given <see cref="JpegColorSpace"/>
|
|
|
|
/// </summary>
|
|
|
|
public static JpegColorConverter GetConverter(JpegColorSpace colorSpace, float precision) |
|
|
|
public static JpegColorConverter GetConverter(JpegColorSpace colorSpace, int precision) |
|
|
|
{ |
|
|
|
JpegColorConverter converter = Array.Find(Converters, c => c.ColorSpace == colorSpace |
|
|
|
&& c.Precision == precision); |
|
|
|
@ -232,4 +232,4 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder.ColorConverters |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|