Permalink
Browse files

added a simple bitmap sharpening filter based on the convolutionMatri…

…xFilter
  • Loading branch information...
1 parent 49f6d8f commit ec6b07d35e28e9882c9756b707cb3acd7756309c gka committed Sep 1, 2011
Showing with 24 additions and 0 deletions.
  1. +24 −0 src/net/vis4/filter/SharpenFilter.as
@@ -0,0 +1,24 @@
+package net.vis4.filter
+{
+ import flash.filters.ConvolutionFilter;
+
+ /**
+ * A very simple sharpening filter
+ *
+ * @author Gregor Aisch
+ */
+ public class SharpenFilter extends ConvolutionFilter
+ {
+
+ public function SharpenFilter()
+ {
+ var matrix:Array =
+ [0, -1, 0,
+ -1, 20, -1,
+ 0, -1, 0];
+ super(3, 3, matrix, 16);
+ }
+
+ }
+
+}

0 comments on commit ec6b07d

Please sign in to comment.