diff --git a/src/ImageSharp/Processing/Processors/Convolution/Parameters/BokehBlurKernelDataProvider.cs b/src/ImageSharp/Processing/Processors/Convolution/Parameters/BokehBlurKernelDataProvider.cs index cf2bec448..12f6e55d5 100644 --- a/src/ImageSharp/Processing/Processors/Convolution/Parameters/BokehBlurKernelDataProvider.cs +++ b/src/ImageSharp/Processing/Processors/Convolution/Parameters/BokehBlurKernelDataProvider.cs @@ -213,7 +213,7 @@ internal static class BokehBlurKernelDataProvider // Complex64 stores each value as adjacent real and imaginary floats. Multiplying that flattened // float span scales both parts independently, which is exactly complex multiplication by a real scalar. - Span values = MemoryMarshal.Cast(kernelsRef); + Span values = MemoryMarshal.Cast(kernelsRef.AsSpan()); TensorPrimitives_.Multiply(values, scalar, values); } }