C
C#3mo 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);
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);
1 Reply
Trace
TraceOP3mo ago
I failed to state this in the first message here, but not having SKShaderTileMode.Repeat causes blurred black borders around the final image due to how the blurring works, and I really don't want those borders
Want results from more Discord servers?
Add your server