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);
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);