[backend/core] Fix build with LangVersion=preview
This commit is contained in:
parent
1bd69467af
commit
ae5cc2477f
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public static class BlurhashHelper
|
||||||
/// <param name="componentsX">The number of components used on the X-Axis for the DCT</param>
|
/// <param name="componentsX">The number of components used on the X-Axis for the DCT</param>
|
||||||
/// <param name="componentsY">The number of components used on the Y-Axis for the DCT</param>
|
/// <param name="componentsY">The number of components used on the Y-Axis for the DCT</param>
|
||||||
/// <returns>The resulting Blurhash string</returns>
|
/// <returns>The resulting Blurhash string</returns>
|
||||||
public static string Encode(Span2D<Rgb24> pixels, int componentsX, int componentsY)
|
public static string Encode(ReadOnlySpan2D<Rgb24> pixels, int componentsX, int componentsY)
|
||||||
{
|
{
|
||||||
if (componentsX < 1) throw new ArgumentException("componentsX needs to be at least 1");
|
if (componentsX < 1) throw new ArgumentException("componentsX needs to be at least 1");
|
||||||
if (componentsX > 9) throw new ArgumentException("componentsX needs to be at most 9");
|
if (componentsX > 9) throw new ArgumentException("componentsX needs to be at most 9");
|
||||||
|
|
Loading…
Add table
Reference in a new issue