// Put a red rectangle around the border
DrawInfo drawInfo = new DrawInfo(new ImageInfo());
drawInfo.setPrimitive("Rectangle 10 10 190 90");
drawInfo.setStroke(PixelPacket.queryColorDatabase("red"));
drawInfo.setFill(PixelPacket.queryColorDatabase("white"));
blankImage.drawImage(drawInfo);
// Annotate the image with a green Hello
ImageInfo blankImageInfo = new ImageInfo();
DrawInfo annotateInfo = new DrawInfo(blankImageInfo);
annotateInfo.setOpacity(0);