I want to create thousands of dynamic images with Java. I've created a JFrame and a LayeredPane and put a JLabel on this. Then I am writing image contents in this JLabel. Then I create this image of this LayeredPane like this
BufferedImage image = (BufferedImage)comp.createImage(width, hight);
It creates the image perfectly but its size is 20KB (more or less). Can I reduce the image size without losing its quality. I have just text and colour in JLabel.
OR
Is there another way to create images based on Text?
Thanks in Advance