Okay here's my real actual code that I first worked on (not recreated):
// Name: Crayon
// Submenu: Artistic
// Author: Sakana Oji
// Title: Crayon
// Desc: Gives the image a crayon effect
// Keywords: crayon artistic
// URL:
// Help:
#region UICode
DoubleSliderControl Amount1 = 3; // [0,10] Thickness
DoubleSliderControl Amount2 = 0; // [0,200] Minimum Scatter Radius
IntSliderControl Amount3 = 2; // [1,8] Quality
IntSliderControl Amount4=1; // [1,5] Radius
IntSliderControl Amount5=10; // [0,100] Percentile
#endregion
// Here is the main render loop function
void Render(Surface dst, Surface src, Rectangle rect)
{
// Setup for calling the Frosted Glass effect
FrostedGlassEffect frostedEffect = new FrostedGlassEffect();
PropertyCollection frostedProps;
// Call the Frosted Glass function
frostedEffect.Render(new Rectangle[1] { rect }, 0, 1);
// Adjust median
MedianEffect medianEffect = new MedianEffect();
PropertyCollection medianProps = medianEffect.CreatePropertyCollection();
PropertyBasedEffectConfigToken medianParameters = new PropertyBasedEffectConfigToken(medianProps);
medianParameters.SetPropertyValue(MedianEffect.PropertyNames.Radius, Amount4);
medianParameters.SetPropertyValue(MedianEffect.PropertyNames.Percentile, Amount5);
medianEffect.SetRenderInfo(medianParameters, new RenderArgs(dst), new RenderArgs(dst));
// Call the Median function
medianEffect.Render(new Rectangle[1] {rect},0,1);
}