C#C
C#16mo ago
Trace

Issues with SKImageFilter

I've been trying to get SKImageFilter to apply a blur to an image in the way I want it to, but have been consistently having issues.

I have tried both the latest release and latest preview of SkiaSharp, but SKShaderTileMode.Repeat (and all other SKShaderTileModes) do absolutely nothing compared to removing the option entirely, and I need SKShaderTileMode.Repeat

Code snippet:
                    SKImage skImg = SKImage.FromBitmap(bitmap);

                    using SKImageFilter blurFilter = SKImageFilter.CreateBlur(blurX, blurY, SKShaderTileMode.Repeat, null);

                    skImg = skImg.ApplyImageFilter(blurFilter, skImg.Info.Rect, skImg.Info.Rect, out SKRectI outSubset, out SKPoint outOffset);
Was this page helpful?