Chris Mary wrote:Hi,
Below is the code
The problem is after the image is written, the font size is small when i opened it
The text drawn on the image will be about 32 pixels tall, since you specified 32 as the font size.
Whether or not that should be considered "small" is subjective. The image itself has a height of 2437 pixels, so 32 would be about 1.3% of that.
If you want a bigger font, then change the
32 to something else, like
128, or
image.getHeight()/10. [But if you use image.getHeight()/10 then you will probably also want to change the Y value in the call to drawString().]