JavaScript圖像處理庫 CamanJS
CamanJS 是一個使用 HTML5 Canvas 和 JavaScript 實現的用來對圖像進行處理的 JavaScript庫,提供一些易用接口來對圖像進行處理,例如加亮等等。

The main focus of CamanJS is manipulating images using the HTML5 canvas and Javascript. It's a combination of a simple-to-use interface with advanced and efficient image/canvas editing techniques. It is also completely library independent and can be safely used next to jQuery, YUI, Scriptaculous, MooTools, etc.
示例代碼:
<script type="text/javascript" src="caman.full.min.js"></script>
<script type="text/javascript">
Caman("images/example-image.jpg", "#example-canvas", function () {
this
.saturation(20)
.gamma(1.4)
.vintage()
.contrast(5)
.exposure(15)
.vignette(300, 60)
.render();
});
</script>
<canvas id="#example-canvas"></canvas>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
