I would like to convert a BufferedImage to an java.awt.Image.
My source-image is tif so I use JAI to read it as PlanarImage:
PlanarImage source = JAI.create("fileload", IMG_DIR + tagImgName);
I then save it as an objects attribute as a BufferedImage
tagImg = source.getAsBufferedImage();
For .pdf-Export (via iText) I need it as java.awt.Image
Thanks!