}
private static void imageMark(MagickImage image, ImageInfo info, int width,
int height, int pos, int offsetX, int offsetY, String text,
Color color, int size, int alpha) throws MagickException {
Position p = ImageUtils.markPosition(width, height, pos, offsetX,
offsetY);
DrawInfo draw = new DrawInfo(info);
int r = color.getRed();
int g = color.getGreen();
int b = color.getBlue();
draw.setFill(new PixelPacket(r * r, g * g, b * b,
65535 - (alpha * 65535 / 100)));
draw.setPointsize(size);
draw.setTextAntialias(true);
draw.setText(text);
draw.setGeometry("+" + p.getX() + "+" + p.getY());
image.annotateImage(draw);
}