I would like to test my thumb generator which retuns byte[] of content in ".png". The test would generate a thumb and then display the thumb image. For example:
byte[] thumbContent = myThumbGenerator.generateThumb("source_image.png", dimensions);
AnyConvenientImageViewerUtil.showPNGImage(thumbContent);
Does anybody knows any convienient util class/library to achieve this in that way?
I know that I could achieve this by creating JFrame and so on... but I don't want to reinvent the wheel.
Thanks in advance.