UNPKG

866 BHTMLView Raw
1---
2layout: example.html
3title: Image Filters
4shortdesc: Apply a filter to imagery
5docs: >
6 <p>Layer rendering can be manipulated in <code>precompose</code> and <code>postcompose</code> event listeners.
7 These listeners get an event with a reference to the Canvas rendering context.
8 In this example, the <code>postcompose</code> listener applies a filter to the image data.</p>
9tags: "filter, image manipulation"
10cloak:
11 As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5: Your Bing Maps Key from http://www.bingmapsportal.com/ here
12---
13<div id="map" class="map"></div>
14<select id="kernel" name="kernel">
15 <option>none</option>
16 <option selected>sharpen</option>
17 <option value="sharpenless">sharpen less</option>
18 <option>blur</option>
19 <option>shadow</option>
20 <option>emboss</option>
21 <option value="edge">edge detect</option>
22</select>