rem 環境によって変えてね
set gmic=C:\share\gmic-0.8
%gmic%\gmic.exe sf.jpg -puzzle -o sample603a.png
元画像(sf.jpg)
出力画像(sample603a.png)

関連項目
G'MICのホームページ
http://gmic.sourceforge.net/






<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="300" height="300">
<defs>
<mask id="mask1" maskUnits="userSpaceOnUse"
x="0" y="0" width="300" height="300">
<rect x="50" y="50" width="200" height="200"
rx="20" ry="20"
style="fill:#ffffff; "/>
</mask>
</defs>
<image x="50" y="50" width="200px" height="200px"
xlink:href="sf.jpg" mask="url(#mask1)">
<title>sf.jpg</title>
</image>
</svg>






<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="300" height="300">
<defs>
<filter id="grayscale">
<feColorMatrix in="SourceGraphic" type="matrix"
values="0.33 0.33 0.33 0.00 0.00
0.33 0.33 0.33 0.00 0.00
0.33 0.33 0.33 0.00 0.00
0.00 0.00 0.00 1.00 0.00" />
</filter>
</defs>
<image x="50" y="50" width="200px" height="200px"
xlink:href="sf.jpg" filter="url(#grayscale)" >
<title>sf.jpg</title>
</image>
</svg>




blurred-image.svg
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="300" height="300">
<defs>
<filter id="gbf">
<feGaussianBlur in="SourceGraphic" stdDeviation="5" />
</filter>
</defs>
<image x="50" y="50" width="200px" height="200px"
xlink:href="./sf.jpg" style="filter:url(#gbf)">
<title>sf.jpg</title>
</image>
</svg>



<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
width="300" height="300">
<defs>
<filter id="gbf">
<feGaussianBlur in="SourceGraphic" stdDeviation="5" />
</filter>
</defs>
<rect x="50" y="50" width="200" height="200"
style="fill:#bbddff; filter:url(#gbf)"/>
</svg>


<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="300" height="300">
<image x="50" y="50" width="200px" height="200px"
xlink:href="./sf.jpg">
<title>sf.jpg</title>
</image>
</svg>

import java.awt.*;
import java.awt.geom.*;
import java.awt.image.*;
import java.io.*;
import java.util.*;
import javax.imageio.*;
import com.jhlabs.image.*;
public class Java2DTest58
{
public static void main(String args[])
throws Exception
{
/* 画像をタイル状に配置する */
BufferedImage img = ImageIO.read(new File("flower1.png"));
BufferedImage img2 = new BufferedImage(
200, 150, BufferedImage.TYPE_INT_RGB
);
TileImageFilter tif = new TileImageFilter(img2.getWidth(), img2.getHeight());
img2 = tif.filter(img, img2);
ImageIO.write(img2, "jpg", new File("sample654a.jpg"));
}
}

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
width="200" height="200">
<defs>
<radialGradient id="rg" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
<stop offset="0%" style="stop-color: #bbddff" />
<stop offset="100%" style="stop-color: #ffffff" />
</radialGradient>
</defs>
<rect x="50" y="50" width="100" height="100"
style="fill:url(#rg)"/>
</svg>
