Table of Contents

Class PdnDentsEffect

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

Provides Paint.NET's Dents effect as a DynamicEffect that can be used for rendering with Direct2D.

public sealed class PdnDentsEffect : PdnDistortionEffect, ISerializable, IDynamicEffect, IDynamicImage, IDeviceImage, IDirect2DResource, IObjectRef, IIsDisposed, IDisposable, IFactoryProperty, IInternalImpl
Inheritance
PdnDentsEffect
Implements
Inherited Members

Remarks

NOTE: Due to limitations in the Direct2D effects and rendering systems, inputs to dynamic images that are also used in effect graphs may need to be wrapped in an ICommandList when used outside of the dynamic image. You can use the CreateBufferedImage(IDeviceContext, IDeviceImage) extension method for this. See that method for more details.

NOTE: Dynamic images usually require the device context's target to be using a buffer precision of Float32 for correct rendering.
If your target is lower precision, use CreateCompatibleDeviceContext(SizeFloat?, SizeInt32?, DevicePixelFormat?, CompatibleDeviceContextOptions) to create an off-screen buffer to render the dynamic image into, and then draw the compatible device context's bitmap to the final render target (device context).

Constructors

PdnDentsEffect(IDeviceContext)

Creates an instance of the distortion effect.

Properties

Properties

Methods

CreateProperties()
OnCreateSampleMap(IDeviceContext, int, int, IDeviceImage)
OnUpdateSampleMap(IDeviceContext, IDeviceImage, int, int)
OnUpdatingOutput()