Table of Contents

Interface IBitmapEffectRenderer

Namespace
PaintDotNet.Effects
Assembly
PaintDotNet.Effects.Core.dll
public interface IBitmapEffectRenderer : IEffectRenderer, IObjectRef, IIsDisposed, IDisposable, IInternalImpl
Inherited Members
Extension Methods

Properties

RenderInfo

Gets the effect's rendering information.

This property may only be accessed after Initialize(BitmapEffectInitializeInfo) has been called.

Methods

GetRenderColorContext(in PixelFormat)

Gets a color context defining the color space for the effect's rendering output. This is the color space that will be used by the Render(void*, int, nint, in PixelFormat, RectInt32) method when it is called with the same PixelFormat.

This method may only be called after Initialize(BitmapEffectInitializeInfo) has been called.

Initialize(BitmapEffectInitializeInfo)

This must be called before SetToken(EffectConfigToken?) is called for the first time.

Render(void*, int, nint, in PixelFormat, RectInt32)

Renders the requested area and stores the result in the given buffer. The entire buffer is written to, including areas that are outside of the selection. The caller must perform any masking or blending.

SetToken(EffectConfigToken?)

This should be called when the token changes, such as when the user makes changes in the effect's configuration dialog. This must be called once before rendering may begin. This should only be called when there are no threads busy with calls to Render(void*, int, nint, in PixelFormat, RectInt32).