diff --git a/examples/image-filter.html b/examples/image-filter.html new file mode 100644 index 0000000000..64c6e12438 --- /dev/null +++ b/examples/image-filter.html @@ -0,0 +1,65 @@ + + +
+ + + + + + + +Apply a filter to imagery
+ +
+ Layer rendering can be manipulated in precompose and postcompose event listeners.
+ These listeners get an event with a reference to the Canvas rendering context.
+ In this example, the postcompose listener applies a filter to the image data.
+
See the image-filter.js source for details on how this is done.
+