>
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 Java2DTest49
{
public static void main(String args[])
throws Exception
{
/* グローフィルタ */
BufferedImage img = ImageIO.read(new File("sf2.jpg"));
GlowFilter gf = new GlowFilter();
/* effect量 */
gf.setAmount(0.3f);
BufferedImage img2 = gf.filter(img, null);
ImageIO.write(img2, "jpg", new File("sample580a.jpg"));
}
}
元画像(sf2.jpg)
出力画像(sample580a.jpg)
No comments:
Post a Comment