Table of Contents

Class PdnSurfaceBlurEffect

Namespace
PaintDotNet.Effects.Gpu
Assembly
PaintDotNet.Effects.Gpu.dll

A Direct2D effect that renders Paint.NET's built-in Surface Blur effect.

Surface Blur is a bilateral filter that blurs the image while preserving sharp details and edges.

public sealed class PdnSurfaceBlurEffect : CustomEffect<PdnSurfaceBlurEffect.Props>, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IObjectRef, IIsDisposed, IDisposable, IInternalImpl
Inheritance
PdnSurfaceBlurEffect
Implements
Inherited Members

Remarks

This effect tends to work best with compressed gamma (aka companded, non-linear). If your input image is in linear gamma space, or if the output of thise effect just looks bad or wrong, then it may be best to first adjust the gamma using GammaTransferEffect, GammaTransferEffect2, or ConvertGammaEffect with an exponent of 2.2. You can also use LinearToSrgbEffect. Then apply the inverse to the output of this effect (either apply an exponent of 1.0/2.2, or use SrgbToLinearEffect).

Constructors

PdnSurfaceBlurEffect(IDeviceEffectFactory)