Convert Text to Image using Java
Convert Text to Image using Java
BufferedImage – The BufferedImage subclass describes an Image with an accessible buffer of image data. This class extends image and implements WritableRenderedImage, Transparency.
Font – Font class extends Object and Implements Serializable. The Font class represents fonts, which are used to render text in a visible way
FontMetrics – FontMetrics extends Object and Implements Serializable. The FontMetrics class defines a font metrics object, which encapsulates information about the rendering of a particular font on a particular screen
RenderingHints – The RenderingHints class defines and manages collections of keys and associated values
Now lets us see an example code – Changing Text into an Image.