package pl.vgtworld.imagedraw.filters.sharpen;

import pl.vgtworld.imagedraw.ImageDrawEntity;
import pl.vgtworld.imagedraw.filters.ImageDrawFilter;
import pl.vgtworld.imagedraw.filters.matrix.MatrixFilter;

public class SharpenFilter implements ImageDrawFilter {
	
	@Override
	public void doFilter(ImageDrawEntity image, int x, int y, int width, int height) {
		float[][] matrix = {
				{ 0, -1, 0 },
				{ -1, 5, -1 },
				{ 0, -1, 0 }
		};
		MatrixFilter filter = new MatrixFilter(matrix);
		filter.doFilter(image, x, y, width, height);
	}
	
}

@@ -258,16 +258,151 @@
 ter %7B%0A%09%0A
+%09private float strength = 1;%0A%09%0A%09public SharpenFilter() %7B%0A%09%7D%0A%09%0A%09public SharpenFilter(float strength) %7B%0A%09%09this.strength = strength;%0A%09%7D%0A%09%0A
 %09@Overri
@@ -521,53 +521,128 @@
 %09%09%7B 
-0, -1, 0 %7D,%0A%09%09%09%09%7B -1, 5, -1 %7D,%0A%09%09%09%09%7B 0, -1, 0
+-strength, -strength, -strength %7D,%0A%09%09%09%09%7B -strength, 1 + 8 * strength, -strength %7D,%0A%09%09%09%09%7B -strength, -strength, -strength
  %7D%0A%09

Add strength parameter.