--- layout: example.html title: Image Filters shortdesc: Apply a filter to imagery docs: >

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.

tags: "filter, image manipulation" cloak: - key: As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5 value: Your Bing Maps Key from http://www.bingmapsportal.com/ here ---