Code
ImageInfo info = new ImageInfo("c:\\1.jpg");
MagickImage aImage = new MagickImage(info);
DrawInfo aInfo = new DrawInfo(info);
aInfo.setFill(PixelPacket.queryColorDatabase("green"));
aInfo.setUnderColor(PixelPacket.queryColorDatabase("yellow"));
aInfo.setOpacity(0);
aInfo.setPointsize(36);
aInfo.setFont("Arial");
aInfo.setTextAntialias(true);
aInfo.setText("JMagick Tutorial");
aInfo.setGeometry("+40+40");
aImage.annotateImage(aInfo);
aImage.setFileName("c:\\text.jpg");
aImage.writeImage(info);
posted @
2009-02-17 22:01
锐
阅读(
581)
评论()
编辑
收藏
举报