Graphics2D g = targetImg.createGraphics();
//draw incoming buffered image to target buffered image
g.drawImage(srcImg, null, 0, EXIF_SIZE_HEAD);
//draw decorative white lines
g.drawLine(0, EXIF_SIZE_HEAD-1, targetWidth, EXIF_SIZE_HEAD-1);
g.drawLine(0, targetHeight-EXIF_SIZE_FOOT-1, targetWidth, targetHeight-EXIF_SIZE_FOOT-1);
//draw exif info
g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
g.setFont(vo.getParams().getExifFont());
FontMetrics metrics = g.getFontMetrics();