星期六, 3月 08, 2014

Pixastic desaturate & download processed image file

desaturate demo with File Save sample (3 methods)
1> directly bring up new window/tab to browse image (window.location.href)
2> use javascript to manipulate a anchor () and set URL as image's DataURL, then make a click
3> a anchor()  with onclick event similar to method-2.





After click, the 'img' becomes 'canvas' by Pixastic
Resert, 'canvas->img'
Show the image only, and be able to download in a new page, the input is Canvas, so the Pixastic must be activated
Download the image as file (fired by Javascript, with Mathrand to generate different file name), the input is Canvas, so the Pixastic must be activated
Download Download the image as file (fired by HTML onclick=), the input is Canvas, so the Pixastic must be activated
<!--input type="button" value="Reset"/

沒有留言: