Class GpuImageEffect
- Namespace
- PaintDotNet.Effects.Gpu
- Assembly
- PaintDotNet.Effects.Core.dll
The base class for Direct2D GPU effects that are based on Direct2D's imaging/effects system. For effects that want to be based on drawing commands (e.g. DrawBitmap, FillRectangle), GpuDrawingEffect (or PropertyBasedGpuDrawingEffect) is probably the right choice instead of this class.
public abstract class GpuImageEffect : GpuEffect2, ISerializable, IGpuImageEffect, IGpuEffect2, IGpuEffect, IEffect, IObjectRef, IIsDisposed, IDisposable
- Inheritance
-
GpuImageEffect
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Methods
- OnCreateOutput(IDeviceContext)
Creates and returns the IDeviceImage that will be used for rendering.
- OnDraw(IDeviceContext, RectInt32)
This method is called to render a portion of the output. You may use the clipRect to optimize your drawing calls.
- OnInvalidateDeviceResources()
This method can be used to Dispose() any resources created from the device context.