I am trying to create a effect that can invert colors with a slider to each color, but I will not post that part and I know I don't did anything wrong there, so I am posting the most important part of my script.
using System;
using System.Drawing;
using PaintDotNet;
using PaintDotNet.Effects;
namespace ModelEffect
{
[EffectCategory(EffectCategory.Effect)]
public class EffectPlugin : Effect
{
public EffectPlugin() : base("Invert Colors", null,"CustomEffects", EffectFlags.Configurable)
{
}
public override void Render(EffectConfigToken parameters, PaintDotNet.RenderArgs dstArgs, PaintDotNet.RenderArgs srcArgs, System.Drawing.Rectangle[] rois, int startIndex, int length)
{
// My code is here
}
public override EffectConfigDialog CreateConfigDialog()
{
return new CreateEffectConfigDialog();
}
}
}