I am using BufferedImage
and Graphics2D
to generate a GIF image, but I am struggling to have the layout like in the picture below. I am not even sure if it's possible at all.
The GIF will be animated and the values in Heading3
will change. I've created the code to generate the GIF, but I can't really get this layout. I looked into TextLayout
and LineBreakMeasurer
, but am not getting the desired o/p. The text should scale based on the image size (which I've got working), but that's key as well.
Any tips?