圖像處理JSP標簽庫 JImageTaglib
JImageTaglib是個用來處理圖片的的標簽,在服務器中生成響應的處理圖片,可以對圖片進行過濾(如轉灰度圖,邊緣查找等)另外還可以用來生成條形碼。
使用方法實例:
<jit:image src="/images/test.jpg"> <jit:filter filter="net.sourceforge.jimagetaglib.filter.BlurFilter" /> <jit:resize width="100" height="100" /> </jit:image>
|
Original Image (the only one hosted on server) |
|
Gray Filter, with border |
|
Blur, Posterize, Sharpen and Threshold128 filters |
| BlackAndWhite and Invert filters, resized to width = 90 and height = 50 | |
| Invert and Sharpen filters, resized to max dimension = 70 | |
| Subpart of original image (x = 10, y = 30, width = 40 and height = 50) | |
|
InvertYellow Filter, resized to width = 80 (keeps aspect) |
| Resized to max = 180 then subpart of original image (x = 80, y = 100, width = 40 and height = 40) | |
|
Emboss filter, applied 2x |
本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!