A JavaScript library that applies filters to images. Performance may not be the best, but compare it with Paint.NET for example, the difference ain't that much and Paint.NET is pretty much written in unsafe C# code so it ain't that bad.
See the demo here
- Draw your image on an HTML canvas.
- Get the image data using
context.getImageData
- Instantiate an
ImageDataHelper
-var helper = new ImageDataHelper(imageData);
- Instantiate an image filter. For example,
var grayscale = new GrayscaleFilter();
- Call the filter's
transformImage
method -grayscale.transformImage(helper);
- The filter performs the transformation in-place. Draw the same image data back to the canvas using
context.putImageData(helper.imageData, 0, 0);
- Missing a namespace, gonna add it soon